4 ms·
> I don't understand why wants_signal returns false on PF_EXITING even if the signal is SIGKILL (and from the kernel). Shouldn't wake up the process still, so i
by cryptonector 3y ago
> I don't understand why wants_signal returns false on PF_EXITING even if the signal is SIGKILL (and from the kernel). Shouldn't wake up the process still, so it can get out of the flush?
First, a signal wouldn't get the process out of blocking on flushing because filesystem waits are non-interruptible.
Second, if a process is exiting then a) no handler for a signal (other than SIGKILL or SIGSTOP) could run, b) any default-exit actions couldn't wouldn't change the state of the process.
Therefore the process can't want the signal if the process is exiting.