-start-
>   "Edward G. Orton" <[EMAIL PROTECTED]>
>at    05/02/2001 07:37 PM

>> Can anyone confirm for me that it is (or isn't) possible to do a
>> nonblocking waitpid() on Activestate 5.6?
>Grant,

>If you pass waitpid the PID of the the child, it will not block. See 
example
>below:

> do {
>  print "Parent sleeping\n";
>  sleep(1);
>  print "Checking on Child $child.\n";
>  $kid = waitpid($child, &WNOHANG);
>  print "kid: $kid\n";
> } while (($kid == $child) || ($kid == 0));

Ahhh.. thanks Ed. I have a pool of pids I need to check on, I guess I'll 
just have to do a nonblock waitpid() on each of them at a time.


Grant Hopwood.
Valero Energy Corp.
(210)370-2380
PGP Public Key: Ldap://certserver.pgp.com
nuclear iraq bioweapon encryption cocaine korea terrorist
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-admin

Reply via email to