116 |
radlog(L_ERR|L_PERROR, _("couldn't open pipe")); |
radlog(L_ERR|L_PERROR, _("couldn't open pipe")); |
117 |
return -1; |
return -1; |
118 |
} |
} |
119 |
if ((oldsig = signal(SIGCHLD, SIG_DFL)) == SIG_ERR) { |
if ((oldsig = rad_set_signal(SIGCHLD, SIG_DFL)) == SIG_ERR) { |
120 |
radlog(L_ERR|L_PERROR, _("can't reset SIGCHLD")); |
radlog(L_ERR|L_PERROR, _("can't reset SIGCHLD")); |
121 |
return -1; |
return -1; |
122 |
} |
} |
199 |
} |
} |
200 |
|
|
201 |
waitpid(pid, &status, 0); |
waitpid(pid, &status, 0); |
202 |
if (signal(SIGCHLD, oldsig) == SIG_ERR) |
if (rad_set_signal(SIGCHLD, oldsig) == SIG_ERR) |
203 |
radlog(L_CRIT|L_PERROR, |
radlog(L_CRIT|L_PERROR, |
204 |
_("can't restore SIGCHLD")); |
_("can't restore SIGCHLD")); |
205 |
|
|