This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Signal Handling


My signal handling is not functioning as expected under gnu-win32.

I notice that if in a read, when a signal (e.g, a SIGALRM) triggers, the
signal handler is run, and then control is passed back to the read,
which just carries on.
It is expected that after a signal has been triggored and the handler
run, then the read should return.

I have tried this using both,

struct sigaction vec;
vec.sa_handler = myroutinename;
if (sigemptyset(*vec.sa_mask) == -1) return -1;
vec.sa_flags = SIG_INTERRUPT;
if (sigaction(SIGALRM, &vec, NULL) == -1) return -1;
alarm(10);

and,

if (signal(SIGALRM, myroutinename) == SIG_ERR) return -1;
alarm(10);

Many Regards,
Ian Collins

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]