delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/01/15/22:15:43

From: alexr AT aurora DOT sps DOT mot DOT com (Alex Rezinsky)
Subject: SIGINT strange behaviour
15 Jan 1999 22:15:43 -0800 :
Message-ID: <369FC363.1D464A66.cygnus.gnu-win32@aurora.sps.mot.com>
Mime-Version: 1.0
To: gnu-win32 AT cygnus DOT com

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 AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019