tags:

views:

32

answers:

1

I use signal(SIGINT,my_handler) to point SIGINT to my_handler. After some time I want to reset it to whatever default handler it points to in general. How can I do that?

+3  A: 

Pass SIG_DFL as the func parameter to signal() to reset default behaviour:

signal(SIGINT, SIG_DFL);
Carl Norum
Yep it worked. thanks.
SkypeMeSM
Accept the answer.
lalli