in reply to 'can't spawn nowait'

groups.google.com returned this on a search for can't spawn nowait

I actually just figured this out about an hour ago.  Add 

waitpid $pid, 0;

to your script when you are done with each individual call 
to IO::Pipe.  That frees up the resource that is hanging 
onto a dead process.open2 can only handle a limited number 
of processes (128 or 64), so you have to unleash the process 
by waiting for it to close itself (waitpid).
HTH
slayven

Replies are listed 'Best First'.
Re^2: 'can't spawn nowait'
by Anonymous Monk on Nov 21, 2007 at 05:08 UTC
    Hi Please tell where i put waitpid $pid, 0; I am getting the error CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are: perl1 validate done. perl1 Starting load. perl1 starting JVM... perl1 client/server mode D:\jdk1.5.0_12\bin\java.exeperl1 JVM owner exiting... Can't exec JVM: open3: IO::Pipe: Can't spawn-NOWAIT: No such file or directory at C:/Perl/site/lib/Inline/Java/JVM.pm line 157 at C:/Perl/site/lib/Inline/Java.pm line 408 BEGIN failed--compilation aborted at Sfa/PostLib.pm line 79. Compilation failed in require at c:\inetpub\wwwroot\TestMoto.pl line 4. BEGIN failed--compilation aborted at c:\inetpub\wwwroot\TestMoto.pl line