Changeset 740 for vendor/current/source3/nmbd/asyncdns.c
- Timestamp:
- Nov 14, 2012, 12:59:34 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/current/source3/nmbd/asyncdns.c
r414 r740 19 19 20 20 #include "includes.h" 21 #include "nmbd/nmbd.h" 21 22 22 23 /*************************************************************************** … … 138 139 { 139 140 int fd1[2], fd2[2]; 141 NTSTATUS status; 140 142 141 143 CatchChild(); … … 163 165 CatchSignal(SIGUSR1, SIG_IGN); 164 166 CatchSignal(SIGHUP, SIG_IGN); 165 CatchSignal(SIGTERM, SIGNAL_CAST sig_term ); 166 167 if (!NT_STATUS_IS_OK(reinit_after_fork(nmbd_messaging_context(), 168 nmbd_event_context(), true))) { 167 CatchSignal(SIGTERM, sig_term); 168 169 status = reinit_after_fork(nmbd_messaging_context(), 170 nmbd_event_context(), 171 procid_self(), true); 172 173 if (!NT_STATUS_IS_OK(status)) { 169 174 DEBUG(0,("reinit_after_fork() failed\n")); 170 175 smb_panic("reinit_after_fork() failed"); … … 259 264 p->locked = False; 260 265 261 if (p->prev)262 p->prev->next = p->next;263 else264 dns_queue = p->next;265 if (p->next)266 p->next->prev = p->prev;267 266 p2 = p->next; 267 DLIST_REMOVE(dns_queue, p); 268 268 free_packet(p); 269 269 p = p2; … … 275 275 if (dns_queue) { 276 276 dns_current = dns_queue; 277 dns_queue = dns_queue->next; 278 if (dns_queue) 279 dns_queue->prev = NULL; 280 dns_current->next = NULL; 277 DLIST_REMOVE(dns_queue, dns_queue); 281 278 282 279 if (!write_child(dns_current)) { … … 305 302 } else { 306 303 p->locked = True; 307 p->next = dns_queue; 308 p->prev = NULL; 309 if (p->next) 310 p->next->prev = p; 311 dns_queue = p; 304 DLIST_ADD(dns_queue, p); 312 305 } 313 306
Note:
See TracChangeset
for help on using the changeset viewer.