With your code (which you dutifully copied from someone who also didn't have this same clue), you will crash sooner or later, or miss a kid until the next kid dies. Just take your while loop out and put it into the top loop of your program, and ignore the "signal handler" concept entirely. Or use Event or POE, which have taken this out into the proper realm.
-- Randal L. Schwartz, Perl hacker
In reply to Re: SIGCHLD not properly defined
by merlyn
in thread SIGCHLD not properly defined
by dewald
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |