G
Guest
I hope you will forgive the slightly OT post, but I haven't had any
luck getting answers in the Unix/Solaris groups. I know the C++
standard doesn't mention signals because they are a platform-specific
topic, but I'm hoping someone here can help me nonetheless.
When a Unix C++ application (Solaris 9 in my case) receives a SIGTERM
signal, do any of the standard C++ handlers get called? Of course I'm
assuming the app hasn't explicitly trapped SIGTERM by installing a
handler for it -- I'm just asking about default behavior.
Do any of the C++ handlers installed by atexit(), set_unexpected(), or
set_terminate() get called? Or is it just as if abort() was called
asynchronously when the SIGTERM arrived? My tests show no C++ handlers
get called, but I thought I'd get a second opinion in case I'm simply
doing something wrong.
Thanks.
luck getting answers in the Unix/Solaris groups. I know the C++
standard doesn't mention signals because they are a platform-specific
topic, but I'm hoping someone here can help me nonetheless.
When a Unix C++ application (Solaris 9 in my case) receives a SIGTERM
signal, do any of the standard C++ handlers get called? Of course I'm
assuming the app hasn't explicitly trapped SIGTERM by installing a
handler for it -- I'm just asking about default behavior.
Do any of the C++ handlers installed by atexit(), set_unexpected(), or
set_terminate() get called? Or is it just as if abort() was called
asynchronously when the SIGTERM arrived? My tests show no C++ handlers
get called, but I thought I'd get a second opinion in case I'm simply
doing something wrong.
Thanks.