uni icon indicating copy to clipboard operation
uni copied to clipboard

Graceful shutdown

Open kendru opened this issue 4 years ago • 1 comments

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

kendru avatar Apr 30 '21 20:04 kendru

Note: @kendru reported that this has some subtle bugs still.

brandonbloom avatar Jul 24 '21 15:07 brandonbloom