I made this exact change, and the program's behavior is unchanged. Did
you compile and run the program with your change and observe different
behavior? I still get only one "Wait interrupted" instead of three.
The signal is being delivered multiple times, it just isn't delivered
anymore after the longjmp, so I'm not sure that resetting the signal
handler is involved in this problem.
Pete.
On Wed, 15 Mar 2000, David A. Gatwood wrote:
quoted
static void
interrupt()
{
signal(SIGALRM, interrupt);
quoted
printf ("Interrupt: %d\n", count);
if (count > 2)
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/