Show More
@@ -115,6 +115,11 b' void setupsignalhandler(pid_t pid, pid_t' | |||||
115 | sa.sa_flags = SA_RESTART; |
|
115 | sa.sa_flags = SA_RESTART; | |
116 | if (sigaction(SIGWINCH, &sa, NULL) < 0) |
|
116 | if (sigaction(SIGWINCH, &sa, NULL) < 0) | |
117 | goto error; |
|
117 | goto error; | |
|
118 | /* forward user-defined signals */ | |||
|
119 | if (sigaction(SIGUSR1, &sa, NULL) < 0) | |||
|
120 | goto error; | |||
|
121 | if (sigaction(SIGUSR2, &sa, NULL) < 0) | |||
|
122 | goto error; | |||
118 | /* propagate job control requests to worker */ |
|
123 | /* propagate job control requests to worker */ | |
119 | sa.sa_handler = forwardsignal; |
|
124 | sa.sa_handler = forwardsignal; | |
120 | sa.sa_flags = SA_RESTART; |
|
125 | sa.sa_flags = SA_RESTART; |
General Comments 0
You need to be logged in to leave comments.
Login now