From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII X-Google-Thread: fee84,4235fa6f7f60b70d X-Google-Attributes: gidfee84,public From: Jeff Denham Subject: Re: Help on (zombie) handling Date: 1998/05/22 Message-ID: <35657375.9C0688B4@brighttiger.com>#1/1 X-Deja-AN: 355536136 Content-Transfer-Encoding: 8bit References: <6k36p1$jug$1@nnrp1.dejanews.com> Content-Type: text/plain; charset=iso-8859-1 Organization: Bright Tiger Technologies MIME-Version: 1.0 NNTP-Posting-Date: Fri, 22 May 1998 08:51:25 EDT Newsgroups: comp.unix.osf.osf1 Could you be a little more specific about what's different between the execution with and w/o SA_NOCLDWAIT, and what exactly fails in the code fragment? All I can guess is that the exec fails for some reason?? yalcin.yildirim@turkcell.com.tr wrote: > Dear All, > > My program generates child processes without waiting them to terminate. > Therefore the terminating child create (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 -- __________________________________________________ Jeff Denham (jdenham@brighttiger.com) Bright Tiger Technologies SmartCluster� Software for Distributed Web Servers http://www.brighttiger.com 125 Nagog Park Acton, MA 01720 Phone: (978) 263-5455 x177 Fax: (978) 263-5547