Hi all,
How can a process be aware of the signals it handles. I looked at available signal API, but couldn't find any help.
If a process defines it own handler for a signal, the default handler for that signal becomes overridden.
I am interested in getting to know the status(SIG_IGN/SIG_DFL) of a signal within a process.
e.g. if a program has been launched like this:
$nohup ./my_exe&
In this case, is it possible for the process to know that as it has been launched with nohup (i.e. SIGHUP => SIG_IGN)... it should ignore its own handler for SIGHUP if exists.
My application always catches the signal and exits.
--Vishal