Marin D wrote:

> void handle_sigint()
> {
>   /* your cleanup code */
> 
>   printf("Doing cleanup\n");
>   fflush(stdout);

The stdio functions aren't guaranteed to be re-entrant, so they
shouldn't be called from within a signal handler.

-- 
Glynn Clements <[EMAIL PROTECTED]>

Reply via email to