equal
deleted
inserted
replaced
239 |
239 |
240 struct sigaction sa; |
240 struct sigaction sa; |
241 memset(&sa, 0, sizeof(sa)); |
241 memset(&sa, 0, sizeof(sa)); |
242 sa.sa_handler = forwardsignal; |
242 sa.sa_handler = forwardsignal; |
243 sa.sa_flags = SA_RESTART; |
243 sa.sa_flags = SA_RESTART; |
|
244 sigemptyset(&sa.sa_mask); |
244 |
245 |
245 sigaction(SIGHUP, &sa, NULL); |
246 sigaction(SIGHUP, &sa, NULL); |
246 sigaction(SIGINT, &sa, NULL); |
247 sigaction(SIGINT, &sa, NULL); |
247 |
248 |
248 /* terminate frontend by double SIGTERM in case of server freeze */ |
249 /* terminate frontend by double SIGTERM in case of server freeze */ |