When a process is killed via a SIGINT signal (sleep for example), the process is stopped and a new prompt shows, but the process enters a zombie like state. Running ps will show that the process is marked as <defunct>. Exiting the shell results in the zombie being fully killed.
Reproducing
Start the shell
Run the sleep command for 10 seconds (sleep 10)
Note: This can be any amount of time
Press ^C to send a SIGINT signal to the sleep command.
When a process is killed via a SIGINT signal (
sleep
for example), the process is stopped and a new prompt shows, but the process enters a zombie like state. Runningps
will show that the process is marked as<defunct>
. Exiting the shell results in the zombie being fully killed.Reproducing
sleep 10
)^C
to send a SIGINT signal to the sleep command.ps