Troubleshooting

A process that ps shows in state D does not exit after kill -9. What explains this?

Show the answer

Correct answerA. It is in uninterruptible sleep, waiting on I/O that has not completed or failed

AWhy this is right: In state D the process waits in the kernel on I/O, and signals are not acted on until the wait ends.

BWhy not this: A zombie shows as state Z, not D.

CWhy not this: A stopped process shows as state T, and SIGKILL ends a stopped process without SIGCONT.

DWhy not this: SIGKILL cannot be caught or ignored by any process.

A process in state D is blocked inside the kernel waiting on I/O, often from a failing disk or hung NFS mount. Signals, including SIGKILL, are not acted on until the wait ends. Resolving the underlying I/O problem is the fix.