3 sig_list *Signal::old_handlers = NULL;
4 int Signal::used_signals[255];
8 memset(used_signals, 0,
sizeof(used_signals));
24 for (current = functions; current; current = current->
next)
43 if (!used_signals[sig_num])
51 sigemptyset(&sa.sa_mask);
53 sa.sa_flags = SA_RESTART;
54 if (sigaction(sig_num, &sa, &sbuf->sa) != -1)
56 buf->
next = functions;
59 sbuf->next = old_handlers;
61 used_signals[sig_num]++;
68 buf->
next = functions;
70 used_signals[sig_num]++;
83 if (!(--used_signals[sig_num]))
91 sigaction(sig_num, &sbuf->
sa, NULL);
98 old_handlers = old_handlers->
next;
113 functions = functions->
next;