Re: Problem with infinite loop in signal handler

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Mirski,

your signal handler function:

> >> void suspend(int sig) {
> >>    printf("suspending\n");
> >>    fflush(stdout);
> >>    while(1);
> >> }

Have you also tried your programm without calling printf and fflush in the
signal handler? Do you know the manpage signal (7) ? There is a list of
Async-signal-safe functions.

Can you tell me, why you need an endless loop in the signal
handler?

Regards,
Gunnar
--
To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Assembler]     [Git]     [Kernel List]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [C Programming]     [Yosemite Campsites]     [Yosemite News]     [GCC Help]

  Powered by Linux