/[radius]/radius/radiusd/exec.c
ViewVC logotype

Diff of /radius/radiusd/exec.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.53 by gray, Wed Jul 16 17:08:29 2003 UTC revision 1.54 by gray, Fri Aug 15 13:32:30 2003 UTC
# Line 116  radius_exec_program(char *cmd, RADIUS_RE Line 116  radius_exec_program(char *cmd, RADIUS_RE
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                  }                  }
# Line 199  radius_exec_program(char *cmd, RADIUS_RE Line 199  radius_exec_program(char *cmd, RADIUS_RE
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    

Legend:
Removed from v.1.53  
changed lines
  Added in v.1.54

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26