|
Hi rajsun,
With "signal" you can reset the handler for SIGINT to the system default with
signal(SIGINT, SIG_DFL);
With "sigaction" you can also use SIG_DFL, or you can supply the third argument to sigaction and save the previous handler and settings, to be restored later by another call to sigaction.
See
man 2 signal
and
man 2 sigaction
They should give you a lot of info on the subject.
~sind
Last edited by sind; 06-28-2005 at 07:23 AM.
|