PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.lang.php > fork
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
fork

Réponse
 
LinkBack Outils de la discussion
Vieux 15/06/2008, 15h02   #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
Vieux 16/06/2008, 01h49   #2
Vince Morgan
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: fork


"chri" <christian.pasin@tiscali.it> wrote in message
news:48552109$0$29979$5fc30a8@news.tiscali.it...
> 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


  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 07h38.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,07972 seconds with 10 queries