Signals

C

CJ

Hi Friends -

Is there any way to tell if a C library function installs its own signal
handler?

~CJ
 
W

Walter Roberson

CJ said:
Is there any way to tell if a C library function installs its own signal
handler?

C89 section 4.7.1:

The implementation shall behave as if no library function calls
the signal function.


Thus, if a C library function does install its own signal
handler, then it would have to do so in a manner that is
transparent to any of the C standard routines that could possibly
detect that signal handler. Therefore, if there is a way of
detecting such a thing, it would have to lie outside of the C
standard (e.g., an OS routine.)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top