>On some systems, waitpid may return something rather than a child pid
or
>-1.  This would happen when the wait was interrupted by something other
>than a child death.  Most likely, it would be zero.

>The return status, $?, is a 16-bit word of three packed values.  See
>`perldoc perlvar` and search for /\$\?/.  It should be set to a
non-zero
>value by the child if the child does not terminate successfully.  Most
>UNIX commands do this; most user-written scripts do not.  Also, Windows
>ignores the return value and always returns zero.

>$? should not change unless a child process died.

Ahhh, I see.  I think I understand now.  Thankyou for your help and
explanations.

Andy


Capgemini is a trading name used by the Capgemini Group of companies which 
includes Capgemini UK plc, a company registered in England and Wales (number 
943935) whose registered office is at No. 1 Forge End, Woking, Surrey, GU21 6DB.
This message contains information that may be privileged or confidential and is 
the property of the Capgemini Group. It is intended only for the person to whom 
it is addressed. If you are not the intended recipient, you are not authorized 
to read, print, retain, copy, disseminate, distribute, or use this message or 
any part thereof. If you receive this message in error, please notify the 
sender immediately and delete all copies of this message.


--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to