Click here to get back home

fork

 HomeNewsGroups | Search | About
 comp.lang.php    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
fork chri 06-15-2008
`--> Re: fork Vince Morgan06-15-2008
Posted by chri on June 15, 2008, 10:02 am
Please log in for more thread options
I have a script that forks some child process! When the child finish
exit with exit($i) function. The problem is that from the parent i can't
see the return value $i of the process! I use the pcntl_waitpid($status)
and pcntl_wifexited($status) but the status returned is always 1. How
can the parent process see if the child has exit? Thanks

Posted by Vince Morgan on June 15, 2008, 8:49 pm
Please log in for more thread options

> I have a script that forks some child process! When the child finish
> exit with exit($i) function. The problem is that from the parent i can't
> see the return value $i of the process! I use the pcntl_waitpid($status)
> and pcntl_wifexited($status) but the status returned is always 1. How
> can the parent process see if the child has exit? Thanks
I have no idea what you are doing really, but I think 'return()' might be
more useful to you than 'exit()'.
Vince



Similar ThreadsPosted
A PHP fork July 6, 2006, 4:48 pm
'fork' a session May 9, 2005, 11:08 pm
Fork problems March 9, 2007, 2:45 pm
max_execution_time and fork April 28, 2007, 12:00 am
php fork/wait, strange behaviour February 7, 2008, 10:40 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap