Discussion: fork
Afficher un message
Vieux 15/06/2008, 16h02   #1
chri
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut fork

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
  Réponse avec citation
 
Page generated in 0,04450 seconds with 9 queries