SIGINT strange behaviour

Alex Rezinsky alexr@aurora.sps.mot.com
Sun Jan 31 23:52:00 GMT 1999


Hi,

I use egcs-1.1 with CYGWIN19
When I run the next program and press cntrl/c,
the message "cntrl/c received." is printed, but
the program exits.

What the problem? Should I update to 20.1 to solve it??

Thanks,
Alex Rezinsky

--------------------------------

#include <stdio.h>
#include <signal.h>

void sigint_handler()
{
    printf("cntrl/c received.\n");
}

main()
{
    signal(SIGINT, sigint_handler);
    for(;;);
}


-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".



More information about the Cygwin mailing list