in reply to lost signals

If there's a 1-in-20 chance that the signal would actually end up killing the kid instead of just nudging it, would you still be using it? No? Then don't use it. {grin}

You should use some other form of IPC, one that doesn't have a chance of corrupting the kids.

-- Randal L. Schwartz, Perl hacker

Replies are listed 'Best First'.
Re: another form of IPC
by Xanatax (Scribe) on Jul 21, 2001 at 13:16 UTC
    well, for everything except the force quit polling a handle would work while the process is active... each time it finishes a command it checks if it has been asked to quit... problem is the child may spend a long time waiting... i've got the handle to the socket on NS, and i am processing commands in a
    while( <NS> ){ ... }
    so if the user isn't sending anything the process waits until they do before it continues processing...

    that said, i think i have to use some means of interrupt, like a signal...

    if there are any alternatives, again, i'm open to suggestions, but all the perl documentation on IPC generally focuses on signals...
    Xan.