Questions tagged [zombie-process]
A “zombie process” is an entry in the process table corresponding to a dead process. The entry will be remove when the process's parent checks its child's return status.
38 questions
0 votes
1 answer
210 views
Is it possible to defer reaping of background processes in bash?
If I just run sleep 1 & in bash, the sleep process will get reaped almost instantly after it dies. This happens whether job control is enabled or disabled. Is there a way I can make bash hold off ...
4 votes
2 answers
1k views
Why or how does killing the parent process clean the zombie child processes in linux?
Consider this example - #include<stdio.h> #include<stdlib.h> #include<unistd.h> int main() { pid_t pid = fork(); if (pid > 0) { printf("Child pid is %d\n", (...
4 votes
2 answers
2k views
zombie process reap without "wait"
I know if a subprocess does not get reaped properly, it will become a zombie and you can see it by ps command. Also the "wait [pid]" command will wait for subshell running on the background ...
0 votes
0 answers
488 views
apache2 crashes suddenly and leaves zombie processes
I am experiencing recurring problem with my apache server, where after few hours/days of light usage, the apache process suddenly crashes and leaves zombie processes. In ps, I then see this: root ...
0 votes
1 answer
1k views
WSL - Different behavior for zombie processes
I'm just playing around with zombie processes on WSL. I wrote a quite simple program: #include <stdio.h> #include <stdlib.h> #include <unistd.h> #define CHILD 0 int main(){ ...
1 vote
3 answers
560 views
Strange zombie process responds to signals?
I have a strange situation. I have a c-written program “A” which takes as argument the name of other executables, e.g. “B”, “C”, “D” etc.. The main job of “A” is to fork and start “B”, “C” etc, then ...
0 votes
2 answers
695 views
df (with options) leaves zombie process
OS = CentOS 7.3 If I try to run the 'df' command on this server with an option (e.g. -h -l) it hangs and leaves a zombie process. I cannot Ctrl+z out back to a prompt. If I run 'df' against specific ...
1 vote
1 answer
6k views
ptrace: Operation not permitted when attaching to a zombie process
I have a reproducible situation where a compiler instance goes into a zombie state when I rebuild a package, but gdb won't permit me to attach: serenity ~ # ps ax | grep defunct 11351 pts/1 Z+ ...