Re: [Boston.pm] How do I wait for all child processes to terminate?

2006-03-31 Thread Kripa Sundar
Dear Ben, Thanks for the detailed reply to my query. If my questions below can be answered by online docs, please feel free to point me to them. I read through the following docs before my previous email. But I am still mostly in the dark: * man -s 2 for fork(), wait(), waitpid() and kill() *

Re: [Boston.pm] How do I wait for all child processes to terminate?

2006-03-31 Thread Ben Tilly
On 3/31/06, Kripa Sundar [EMAIL PROTECTED] wrote: Dear Ben, Thanks for the detailed reply to my query. If my questions below can be answered by online docs, please feel free to point me to them. I read through the following docs before my previous email. But I am still mostly in the dark:

[Boston.pm] How do I wait for all child processes to terminate?

2006-03-30 Thread Kripa Sundar
Hello all, I thought this was fairly simple (and it probably is). But I am not able to figure out how I can fork() off, say, five child processes, and wait for all of them to terminate. Is the code below on the right track? Is it as simple as wait for [EMAIL PROTECTED]? I think this will let

Re: [Boston.pm] How do I wait for all child processes to terminate?

2006-03-30 Thread Ben Tilly
On 3/30/06, Kripa Sundar [EMAIL PROTECTED] wrote: Hello all, I thought this was fairly simple (and it probably is). But I am not able to figure out how I can fork() off, say, five child processes, and wait for all of them to terminate. 1 until -1 == wait(); You'll need something more