bcoe / secure-smtpd

Fork of Python's standard SMTP server. Adding support for various extensions to the protocol.
ISC License
128 stars 42 forks source link

Shutdown fix #11

Closed GrantEdwards closed 10 years ago

GrantEdwards commented 10 years ago

Set daemon flag on child processes so they get terminated auto-magically when parent exits cleanly.

Add server.run() method that handles SIGTERM and exits cleanly so that child workers get shut down.

Modify example programs to use new server.run() method.

Modify example programs to use non-privileged ports.