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