Changeset 1098
- Timestamp:
- 11/15/07 21:10:27 (1 year ago)
- Files:
-
- trunk/pdns/pdns/pdns_recursor.cc (modified) (1 diff)
- trunk/pdns/pdns/rec_channel.cc (modified) (2 diffs)
- trunk/pdns/pdns/rec_channel.hh (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/pdns/pdns/pdns_recursor.cc
r1094 r1098 1034 1034 void daemonize(void) 1035 1035 { 1036 s_rcc.d_dontclose=true; 1036 1037 if(fork()) 1037 1038 exit(0); // bye bye trunk/pdns/pdns/rec_channel.cc
r988 r1098 14 14 { 15 15 d_fd=-1; 16 d_dontclose=false; 16 17 *d_local.sun_path=0; 17 18 } … … 21 22 if(d_fd > 0) 22 23 close(d_fd); 23 if(*d_local.sun_path )24 if(*d_local.sun_path && !d_dontclose) 24 25 unlink(d_local.sun_path); 25 26 } trunk/pdns/pdns/rec_channel.hh
r802 r1098 33 33 34 34 int d_fd; 35 bool d_dontclose; 35 36 private: 36 37 struct sockaddr_un d_local;