In parent.pl,
>$child{$pid} = {in=>$in,number=>$i,event=>$event,called=>1};
was supposed to be:
$child{$pid} = {in=>$in,out=>$out,number=>$i,event=>$event,called=>1};
- Johnathan
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
::Event->new(0,1,"child_ready_$number");
print "entering command cycle\n";
while(my $command = ){
chomp $command;
last if($command eq 'EXIT');
if($command =~ /^SLEEP (\d+) SECONDS$/){
sleep $1;
print "slept for $1 seconds\n";
$event->set()
>Hi All,
>
> I trying to find some information (examples) about forks
> or thread for perl on win32, can anyone help me?
>
> Basically want to run 'X' simultanous processes in a
> continous loop. That is there will alway be 'X' number
> of processes
(please forgive the dulpicate post - last one has wrong subject Doh!)
Hi All,
I trying to find some information (examples) about forks or thread for perl
on win32, can anyone help me?
Basically want to run 'X' simultanous processes in a continous loop. That is
there will alway be