How do you catch a signal without terminating the process ?

Kevin L. McBride klm at gozer.UUCP
Fri Jun 28 21:53:05 AEST 1991


This is a repost.  My upstream feed apparently dropped it on the floor the
first time 'round.  If you see this twice, close one eye. :-)

In article <16410 at smoke.brl.mil> gwyn at smoke.brl.mil (Doug Gwyn) writes:
>In article <1991Jun13.160901.3715 at gozer.UUCP> klm at gozer.UUCP (Kevin L. McBride) writes:
>>Remember, never re-enable an interrupt until the condition that caused
>>the interrupt has been cleared.
>
>UNIX signals are not interrupts.

Yes, I am aware of this.  I was generalizing.  However, SIGCLD/SIGCHLD
behaves in this context as if it were an interrupt in that it will be
reissued immediately if not cleared before being re-enabled.

>Worse, SIGCHLD/SIGCLD is not even a UNIX signal, it's an abomination.

Agreed, albeit a useful one.

--
Kevin L. McBride    DoD      // Just say NO to the war on your freedom which,
President          #0348    //  by the way, is being fought with YOUR money.
MSCG, Inc.              \\ //   Let them know you've had enough.
uunet!wang!gozer!klm     \X/    Vote Libertarian.



More information about the Comp.unix.wizards mailing list