in reply to double fork trick vs sig chld wait
Since you are using system rather than exec, maybe you would be better served by using threads to do the work instead of child processes. I would pre-create a pool of 'child-threads', and task them as needed. As of perl 5.10 (I think), the stack_size parameter was supported, so you can create lots of threads without needing reams of memory.
fnord
|
|---|