F
Free Bird
Hello all,
I have two questions about signal handlers. First of all, is it possible to
specify a signal handler for all non-specified signals? Since ISO C defines
only six signals but POSIX defines a lot more of them, I'd like a way to
just use a generic signal handler (which just exits with a special exit
code, for instance) for all non-standard signals, but I have no idea if this
is possible while remaining ISO C compliant.
Secondly, can anyone with a copy of the C99 standard confirm that it's safe
to call _Exit() from signal handlers which may be called asynchronously?
Thanks in advance for answering.
I have two questions about signal handlers. First of all, is it possible to
specify a signal handler for all non-specified signals? Since ISO C defines
only six signals but POSIX defines a lot more of them, I'd like a way to
just use a generic signal handler (which just exits with a special exit
code, for instance) for all non-standard signals, but I have no idea if this
is possible while remaining ISO C compliant.
Secondly, can anyone with a copy of the C99 standard confirm that it's safe
to call _Exit() from signal handlers which may be called asynchronously?
Thanks in advance for answering.