The wait function returns the pid of a completed child process. If you keep a hash with pid as key and whatever identifying data you like as value, you can tell which subtask has finished.
After Compline,
Zaxo
In reply to Re: Waiting For Multiple Programs to Complete
by Zaxo
in thread Waiting For Multiple Programs to Complete
by NathanE
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |