/[pengfork]/pengfork/src/misc.c
ViewVC logotype

Diff of /pengfork/src/misc.c

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

revision 1.10 by chupa, Tue Dec 3 18:38:15 2002 UTC revision 1.11 by chupa, Wed Dec 4 13:59:17 2002 UTC
# Line 41  Line 41 
41  #include "options.h"  #include "options.h"
42  #include "sighndl.h"  #include "sighndl.h"
43    
44    
45  void  void
46  daemon_mode (void)  daemon_mode (void)
47  {  {
# Line 244  launch_ip_down (if_name) Line 244  launch_ip_down (if_name)
244        debug (1, "Launching %s\n", PARAM_IP_DOWN);        debug (1, "Launching %s\n", PARAM_IP_DOWN);
245    
246        pid = fork ();        pid = fork ();
247        if (pid > 0)        if (pid == 0)
248          {          {
249            if (putenv (name))            if (putenv (name))
250              log (LOG_WARNING, gettext ("Can't set environment variables: %s (%d)\n"),              log (LOG_WARNING, gettext ("Can't set environment variables: %s (%d)\n"),
# Line 255  launch_ip_down (if_name) Line 255  launch_ip_down (if_name)
255                   PARAM_IP_DOWN, strerror (errno), errno);                   PARAM_IP_DOWN, strerror (errno), errno);
256            exit (-1);            exit (-1);
257          }          }
258        else if (pid == 0)        else if (pid > 0)
259          {          {
260            return 1;
261          }          }
262        else        else
263          {          {

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

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