uni
uni copied to clipboard
Graceful shutdown
This PR does 3 things:
- Cause the child process to be stopped with SIGTERM instead of SIGKILL. SIGKILL is still sent if the process has not stopped after a fixed period.
- Start the child process in its own process group so that stopping the child will also stop any of its owned processes.
- Intercept SIGKILL/SIGTERM in uni itself and trigger a shutdown of its child process
Resolves #10
Note: @kendru reported that this has some subtle bugs still.