… | |
… | |
203 | act.sa_flags = 0; |
203 | act.sa_flags = 0; |
204 | |
204 | |
205 | act.sa_handler = sighup_handler; sigaction (SIGHUP , &act, NULL); |
205 | act.sa_handler = sighup_handler; sigaction (SIGHUP , &act, NULL); |
206 | act.sa_handler = sigusr1_handler; sigaction (SIGUSR1, &act, NULL); |
206 | act.sa_handler = sigusr1_handler; sigaction (SIGUSR1, &act, NULL); |
207 | act.sa_handler = sigusr2_handler; sigaction (SIGUSR2, &act, NULL); |
207 | act.sa_handler = sigusr2_handler; sigaction (SIGUSR2, &act, NULL); |
208 | act.sa_handler = SIG_IGN; sigaction (SIGCHLD, &act, NULL); |
|
|
209 | act.sa_handler = SIG_IGN; sigaction (SIGPIPE, &act, NULL); |
208 | act.sa_handler = SIG_IGN; sigaction (SIGPIPE, &act, NULL); |
210 | act.sa_flags = SA_RESETHAND; |
209 | act.sa_flags = SA_RESETHAND; |
211 | act.sa_handler = sigterm_handler; sigaction (SIGINT , &act, NULL); |
210 | act.sa_handler = sigterm_handler; sigaction (SIGINT , &act, NULL); |
212 | act.sa_handler = sigterm_handler; sigaction (SIGTERM, &act, NULL); |
211 | act.sa_handler = sigterm_handler; sigaction (SIGTERM, &act, NULL); |
213 | } |
212 | } |