logoalt Hacker News

BenjiWiebetoday at 4:48 AM2 repliesview on HN

How often does plain 'kill <pid>' not work, but some other signal other than SIGKILL works?

Usually the process is either working correctly and terminates when asked, or else not working correctly and needs to be KILLed.


Replies

consptoday at 6:43 AM

Lots of commandline tools will hold on to dear life except for the sigkill. I often have this with running background tasks which get one of their threads in an infinite loop or wait state.

chasiltoday at 7:38 AM

It is possible to install a handler for most signals, and that handler can be configured to ignore the signal.

Signal 9 cannot be ignored.

show 1 reply