From: yalcin.yildirim@turkcell.com.tr
Subject: Help on <defunct> (zombie) handling
Date: 1998/05/22 [thread overview]
Message-ID: <6k36p1$jug$1@nnrp1.dejanews.com> (raw)
Dear All,
My program generates child processes without waiting them to terminate.
Therefore the terminating child create <defunct> (zombie). To handle this
situation I use SA_NOCLDWAIT macro, but this action changes the way the
program runs. This program segment first written on Solaris 2.5.1 and run
without any problems, however when ported to Digital Unix 4.0, this part
fails. I would appreciate any help on this case.
Thanks,
Yalcin
struct sigaction act, oact;
act.sa_flags = SA_NOCLDWAIT;
if ( sigaction( SIGCHLD, &act, &oact ) == -1 )
{
perror( "sigaction failed\n" );
exit (1);
}
if ( ( pid = fork() ) == 0 )
{
execlp( "/bin/a_function", "a_function", (char *) 0 );
}
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/ Now offering spam-free web-based newsreading
next reply other threads:[~1998-05-22 4:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-05-22 4:00 yalcin.yildirim [this message]
1998-05-22 4:00 ` Help on <defunct> (zombie) handling Jeff Denham
1998-05-22 4:00 ` yalcin.yildirim
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox