/[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.52 by gray, Thu Jun 19 12:39:42 2003 UTC revision 1.53 by gray, Wed Jul 16 17:08:29 2003 UTC
# Line 141  radius_exec_program(char *cmd, RADIUS_RE Line 141  radius_exec_program(char *cmd, RADIUS_RE
141                                  radlog(L_ERR|L_PERROR, _("can't close pipe"));                                  radlog(L_ERR|L_PERROR, _("can't close pipe"));
142                          if (dup2(p[1], 1) != 1)                          if (dup2(p[1], 1) != 1)
143                                  radlog(L_ERR|L_PERROR, _("can't dup stdout"));                                  radlog(L_ERR|L_PERROR, _("can't dup stdout"));
144                  }                  } else
145                            close(1);
146    
147                  for (n = getmaxfd(); n >= 3; n--)                  for (n = getmaxfd(); n >= 3; n--)
148                          close(n);                          close(n);

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

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