howto know whether a function is called in signal handler
I come across a problem today, could you please give some suggestions.
I wonder how to get to know whether a function is called in signal handler funtion or in normal function.
for example:
A() {
...............
}
sighandler() {
...............
A();
}
in A, is there any method to know whether this is in sighandler function? Thank you.
|