122{
123#if 0
125 if (retval == SIG_ERR)
126 {
127 fprintf(stderr, "Unable to init signal %d ... exiting...\n", sig);
128 }
130
131
132
133#else
134 struct sigaction new_action,old_action;
135 memset(&new_action, 0, sizeof(struct sigaction));
136
137
138 new_action.sa_handler = signal_handler;
139 if (sig==SIGINT)
140 sigemptyset (&new_action.sa_mask);
141 else
142 new_action.sa_flags = SA_RESTART ;
143
144 int r=si_sigaction (sig, &new_action, &old_action);
146 if (r == -1)
147 {
148 fprintf(stderr, "Unable to init signal %d ... exiting...\n", sig);
149 retval=SIG_ERR;
150 }
151#endif
152 return retval;
153}
#define si_siginterrupt(arg1, arg2)