daemons icon indicating copy to clipboard operation
daemons copied to clipboard

Why SIGQUIT for kill?

Open stevehartdata opened this issue 4 years ago • 2 comments

Thank you for your work on this package!

Is there a reason you use SIGQUIT for kill and killAndWait? The default behavior on Linux is to terminate the process and dump core on SIGQUIT. I think it might make more sense to use SIGTERM, which is the default for kill(1). Would you be inclined to accept a PR to switch to SIGTERM?

stevehartdata avatar Sep 01 '20 13:09 stevehartdata

I am also interested if there's a reason behind it. While trying out the library, both kill and killAndWait didn't shut down my process. Changing it to sigTERM worked great.

msrdic avatar Nov 17 '20 19:11 msrdic

I want to add that there are situations that GHC installs handler for SIGQUIT, which prevents process from termination: https://gitlab.haskell.org/ghc/ghc/-/issues/17451

Javran avatar Aug 27 '22 22:08 Javran