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?
views:
32answers:
1
+3
A:
Pass SIG_DFL as the func parameter to signal() to reset default behaviour:
signal(SIGINT, SIG_DFL);
Carl Norum
2010-09-05 06:01:45
Yep it worked. thanks.
SkypeMeSM
2010-09-05 06:06:21
Accept the answer.
lalli
2010-09-05 06:09:51