If a linux process is waiting for I/O (i.e it is in SLEEP
state) and a SIGKILL
signal is issued against it, upon termination (STOPPED
state) will it pass through RUNNING
or READY
state?
In other words, for a process to handle a system interrupt such as one generated by SIGKILL
is it necessary to pass through RUNNING
or READY
state ?
Knowing that under normal circumstances a process can handle an interrupt from kernel and knowing that SIGKILL
has a quite contradictory purpose of killing an unresponsive signal, I was doubtful about how much control is given to the process being killed, if any at all.
SIGKILL
is an unfortunate example as it is a signal which can't be handled by the receiving process. If your question is unrelated toSIGKILL
and it is a mere example, consider using another signal to express what you mean. – Delegation