daemonize
daemonize copied to clipboard
Don't call `sys.exit` in `atexit` callback
Python is already shutting down. Calling exit again is an error.
The behavior when exception raised in atexit callback seems to be controversial. http://bugs.python.org/issue27035 It’s better not to call sys.exit.