* forking zombies?
@ 1997-03-07 5:00 HSR Sys-Admin
1997-03-07 5:00 ` Burkhard Neidecker-Lutz
0 siblings, 1 reply; 2+ messages in thread
From: HSR Sys-Admin @ 1997-03-07 5:00 UTC (permalink / raw)
Hello,
i copied the digital sample-programm for a typical server
programm in c and all what i notice it, that this little
devil is producing one zombie on each client-request. here
an extract of the program:
...
pid=(fork)
switch pid (
0: ... here do the task
return (0);
-1: printf ("error on fork");
}
what ids my problem?
Panther
--
Panther in the Jungle __..--''``\--....___ _..,_
-BELIEVE AND DECEIVE- _.-' .-/"; ` ``<._ ``-+'~=.
http://www.ang-physik _.-' _..--.'_ \ `(^) )
.uni-kiel.de/~hendrik ((..-' (< _ ;_..__ ; `'
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: forking zombies?
1997-03-07 5:00 forking zombies? HSR Sys-Admin
@ 1997-03-07 5:00 ` Burkhard Neidecker-Lutz
0 siblings, 0 replies; 2+ messages in thread
From: Burkhard Neidecker-Lutz @ 1997-03-07 5:00 UTC (permalink / raw)
In article <5foagm$hk@jungle.deceiver.org> alpha@jungle.deceiver.org (HSR Sys-Admin) writes:
> <program doing a fork deleted>
>
>what ids my problem?
You are not performing a wait(2) for the child process in the parent.
Register a signal handler for SIGCHLD in the parent which does the
wait.
Burkhard Neidecker-Lutz
EUROMEDIA - Distributed Multimedia Archives for Cooperative TV Production
CEC Karlsruhe , European Applied Research Center, Digital Equip. Corp.
email: neideck@kar.dec.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1997-03-07 5:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-03-07 5:00 forking zombies? HSR Sys-Admin
1997-03-07 5:00 ` Burkhard Neidecker-Lutz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox