Forum Moderators: coopster & phranque

Message Too Old, No Replies

Error msg in Perl prog. - Spawn

Error msg . Spawn-no wait

         

nacodc

3:46 am on Dec 29, 2002 (gmt 0)

10+ Year Member



I have a program in Perl that sometimes gets this msg:
open2: IO::Pipe: Can't spawn-NOWAIT: Resource temporarily unavaliable at
msg_cracker.pl line 443

do you know what it could mean? what should i do?
The prog uses get and post methods, via a proxy server....
i think its something related to a timeout...but i cant find the solution

andreasfriedrich

9:20 am on Dec 30, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Did you check out the IPC::Open2 [perldoc.com] and perlipc [perldoc.com] docs?

Andreas

nacodc

9:33 pm on Dec 30, 2002 (gmt 0)

10+ Year Member



Thanks i will take a look and see if i can find a solution.
if i cant ill msg you for some help..
Thanks for your time...

nacodc

9:22 pm on Jan 2, 2003 (gmt 0)

10+ Year Member



Hello
It seems not to be working,
i have searched the page you told me, but when i put
the part: (with the waitpid)
elsif ($Param[1] eq '2wayproc') {
$ExtPid = open2(*ExtReader, *ExtWriter, $TempValue );
shout ('debug',"OPEN2: Two-way process with PID $pid spawned.");
select(ExtWriter); $¦ = 1; select(STDOUT);
waitpid $pid, 0;
it does not change (it keeps stoping after 64 processes)

i have tried to change the value to -1, same thing happens, then when i changed the " $ExtPid " to just $Pid .
the program stops responding when it reaches the part that it uses the open2 process....

Thanks, please msg me back...( it would be great if with some solution :) )

obs: i have also pasted this: use POSIX ":sys_wait_h"; at the beggining of the code...