Mail Archives: cygwin-developers/1998/06/15/06:16:18
Christopher Faylor wrote:
> >> Are you proposing that do_exit *always* runs in the context of the signal
> >> handler?
> >>
> >
> >Yes, if the signal must terminate a process.
>
> void
> killme(int sig)
> {
> exit(sig);
> }
>
> int
> main(int argc, char **argv)
> {
> signal(SIGALRM, killme);
> alarm(5);
> pause();
> }
>
> How do you determine that the exit() above should run from the signal thread?
Chris, once again - I'm talking about _uncatched_ signals!
--
Sergey Okhapkin, http://www.lexa.ru/sos
Moscow, Russia
- Raw text -