/[anubis]/anubis/src/daemon.c
ViewVC logotype

Diff of /anubis/src/daemon.c

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

revision 1.12 by gray, Sun Aug 17 15:36:39 2003 UTC revision 1.13 by gray, Sun Aug 24 16:13:00 2003 UTC
# Line 32  Line 32 
32   int allow_severity = LOG_INFO;   int allow_severity = LOG_INFO;
33  #endif /* USE_LIBWRAP */  #endif /* USE_LIBWRAP */
34    
35  static void sig_cld(int);  static RETSIGTYPE sig_cld(int);
36  static void service_unavailable(int);  static void service_unavailable(int);
37  static void set_unprivileged_user(void);  static void set_unprivileged_user(void);
38    
# Line 80  daemonize(void) Line 80  daemonize(void)
80          return;          return;
81  }  }
82    
83  static void  static RETSIGTYPE
84  sig_cld(int code)  sig_cld(int code)
85  {  {
86          pid_t pid;          pid_t pid;
# Line 354  loop(int sd_bind) Line 354  loop(int sd_bind)
354                          close_socket(sd_client);                          close_socket(sd_client);
355                  }                  }
356                  topt &= ~T_ERROR;                  topt &= ~T_ERROR;
357                    cleanup_children();
358          }          }
359          return;          return;
360  }  }
# Line 444  stdinout(void) Line 445  stdinout(void)
445          net_set_io(CLIENT, _stdio_read, _stdio_write, NULL, _stdio_strerror);          net_set_io(CLIENT, _stdio_read, _stdio_write, NULL, _stdio_strerror);
446          net_set_io(SERVER, _stdio_read, _stdio_write, NULL, _stdio_strerror);          net_set_io(SERVER, _stdio_read, _stdio_write, NULL, _stdio_strerror);
447          smtp_session();          smtp_session();
448            cleanup_children();
449            
450          close_socket(sd_server);          close_socket(sd_server);
451          free_mem();          free_mem();
452          return;          return;

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13

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