[bcn-pm] Perls i forks

Jaume Bacardit Peñarroya helly at he11storm.net
Thu Mar 18 17:36:09 CST 2004


Josep Monés i Teixidor wrote:

>On dj, 2004-03-18 at 23:23, Jaume Bacardit Peñarroya wrote:
>
>  
>
>>L'alternativa, si t'interessa, és cridar a la funció "wait" per cada 
>>fill, pero aixo bloqueja el pare (diria).
>>
>>    
>>
>
>Potser pixo fora de test perquè el POSIX no és "lo meu", però en C wait
>si el crides amb WNOHANG no bloqueja. Jo ho sento però de perl no en sé
>(estic aquí per a veure si pesco alguna cosa) però imagino que el flag
>aquest també hi deu ser.
>
>Però la forma normal serial que el pare fes un wait. 
>
>Lluís, dius que no ho pot fer perquè sinó no "es perd la
>paral·lització". Què vols dir?
>
>  
>
$ man perlfunc
       wait    Behaves like the wait(2) system call on your system

Suposo que tens rao, mai m'he mirat totes les opcions del wait ;)

Jaume



More information about the Barcelona-pm mailing list