On Sun, Jun 01, 2003 at 09:29:08PM +0100, Dirk Koopman wrote:
> while (in some idle loop or other) {
>       if ($death) {
>               $death-- while waitpid(-1, WNOHANG);
>       }       
> }

I'd be inclined to swap the if and while:
| while (in some idle loop or other && $death) {
|     $death-- if waitpid(-1, WNOHANG);
| }

But this seems a reasonable suggestion. I've never quite figured out why the
signal handlers in perl are interruptible. This seems to be a bug, but I'm
not quite sure. Signals have never been my strong point, I normally know
enough to get by...

-- 
Lusercop.net - LARTing Lusers everywhere since 2002

Reply via email to