Gossamer Forum
Home : General : Perl Programming :

Waitpid Spawn error in Perl

Quote Reply
Waitpid Spawn error in Perl
Hello i have a perl program that uses the get and post method.

But afther 64 cicles, it gives me this error msg:

open2: IO::Pipe: Can't spawn-NOWAIT: Resource temporarily unavaliable at horseland_cracker.pl line 443
i think it means that it is not closing or eliminating the zombies(dead threads)...

some people say that i need to put the waitpid, but it stops responding when i use the waitpid ($pid,0);

and when i use the -1 it gives the same error smg afther the 64 cicles....i saw o a site that the waitpid does not work on windows...can anyone help me find a solution, or a way to adept or use the waitpid...

the part of the code is bellow (line443)

}

close TEMPFILE;

} 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);

}

return;

Subject Author Views Date
Thread Waitpid Spawn error in Perl nacodc 7243 Jan 3, 2003, 10:58 AM
Thread Re: [nacodc] Waitpid Spawn error in Perl
Alex 7121 Jan 6, 2003, 11:35 AM
Thread Re: [Alex] Waitpid Spawn error in Perl
nacodc 7093 Jan 7, 2003, 4:39 PM
Post Re: [nacodc] Waitpid Spawn error in Perl
nacodc 7084 Jan 7, 2003, 4:42 PM