Closed zerok closed 10 years ago
Can you first try this by using the gunicorn
tool instead of going through the Django management command run_gunicorn
(which is deprecated)?
Same behaviour as far as I can tell. What is the main motivation behind using subprocess.Popen instead of os.execvpe?
@zerok Okay, thanks for trying. No particular reason, does "os.execvpe" work on Windows?
Also, can you try #15 please?
This is now fixed and released as 0.6.1. Thanks @zerok!
We yesterday discovered an issue where for some reason SIGTERM is not cleanly propagated to the child process.
For instance, if you launch a gunicorn instance with two workers
And then send SIGTERM to the envdir process, you end up with only this process terminating:
I couldn't reproduce this directly with deamontools' envdir because they seem to completely replace the envdir process once the environment is set up.