hi
Due to some problem i could not connect to news group thats why i am
replying using google news group.
wrote:
> > How do you know that?
when i am running my script on terminal
perl server.pl
It shows the following output on the terminal after accepting the
client request.
Mon Sep 26 11:49:16 IST 2005
> > See perldoc -f system. Note the third paragraph beginning with "The
> > return value is..."
as u told i go through it and able to understand what exactly
happened,same as Charles DeRykus said to me .
Calling "wait()" with "$SIG{CHLD}" set to "'IGNORE'" usually returns
"-1" that's what i got through send function
$sNew_Socket->send($sDatecmd);
but if i comment out the $SIG{CHLD}='IGNORE' then zombies are created.
Also, date is not just i what to run . i am using it here just to test
the system command output in forking server.
>
> I suspect the most likely scenario is that "date" succeeded but
> that wait returned -1 because of the auto-reaping of "IGNORE".
> >From perlipc:
> ...
> Setting "$SIG{CHLD}" to "'IGNORE'" on such a platform has
> the effect of not creating zombie processes when the parent
> process fails to "wait()" on its child processes (i.e. child
> processes are automaticaly reaped).
>
> perl -le '$SIG{CHLD}="IGNORE";print system "date"'
> Thu Sep 22 20:06:29 PDT 2005
> -1
so,please suggest me how do i get the system command output in forking
server.
Thanks
vikrant