While that code will reap anything that is already terminated, it does not insure that system calls terminate faster than they are generated. If the count is already at 64 You need some sort of counter that blocks the next system call from starting before one finishes.
while there is a return code in $? right after the waitpid i dont think there is any way to capture any textual error when you use system(1,...)
In reply to Re^3: Multiple consecutive connections to a socket (probably a stupid question)
by huck
in thread Multiple consecutive connections to a socket (probably a stupid question)
by vr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |