Quote:
Originally Posted by makki
'kill' sends a SIGTERM signal to the process so it can exit cleanly(close file ptr, flush buffers, etc, and exit), 'kill -9' asks the OS to close the process. That's the only signal that is not delivered to the process,. so it can not handle.
if it is not delivered the process, how is the kernel able to terminate the process forcefully?
It is delivered.
signal handlers for -9 cannot be registered.
Along with -9 there is one more
SIGSTOP which stops the process and cannot be handled.