Skip to main content

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.

0 votes
1 answer
211 views

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 ...
Joseph Sible-Reinstate Monica's user avatar
4 votes
2 answers
1k views

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", (...
shawdowfax1497's user avatar
4 votes
2 answers
2k views

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 ...
chengdol's user avatar
  • 303
0 votes
0 answers
488 views

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 ...
Martin Vegter's user avatar
0 votes
1 answer
1k views

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(){ ...
TimSch's user avatar
  • 123
1 vote
3 answers
560 views

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 ...
alain's user avatar
  • 11
0 votes
2 answers
695 views

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 ...
Heisenberg's user avatar
1 vote
1 answer
6k views

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+ ...
Michael Mol's user avatar

15 30 50 per page