Gossamer Forum
Home : General : Perl Programming :

Re: [nacodc] Waitpid Spawn error in Perl

Quote Reply
Re: [nacodc] Waitpid Spawn error in Perl In reply to
He also said this
"The idea is as follows :
- each time you start a child process, it occupies a new position in some
internal process table, which can contain maximum 64 processes under NT
- even if the child process terminates, that position in the internal
process table is still occupied, and the only way to clear it and make it
available
again, is to do a waitpid(), with the process-id of the (now dead) child.
That process-id is what is (originally, right after the call to open2()) in
the $ExtPid variable.

So you must find out, in your program, when the child process has finished
it's work, and then do a waitpid() on it's process-id to clean the table.

If you don't do that, then slowly the table gets full, and when you have 64
"dead" processes in it, you will get this error when you try to start
another one.
"

He could not find another solution or view my codes and addpet it...
I hope someone can help me
Thanks a lot
Subject Author Views Date
Thread Waitpid Spawn error in Perl nacodc 7292 Jan 3, 2003, 10:58 AM
Thread Re: [nacodc] Waitpid Spawn error in Perl
Alex 7169 Jan 6, 2003, 11:35 AM
Thread Re: [Alex] Waitpid Spawn error in Perl
nacodc 7141 Jan 7, 2003, 4:39 PM
Post Re: [nacodc] Waitpid Spawn error in Perl
nacodc 7133 Jan 7, 2003, 4:42 PM