Changeset 745 for trunk/server/source3/nmbd/asyncdns.c
- Timestamp:
- Nov 27, 2012, 4:43:17 PM (13 years ago)
- Location:
- trunk/server
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server
- Property svn:mergeinfo changed
/vendor/current merged: 581,587,591,594,597,600,615,618,740
- Property svn:mergeinfo changed
-
trunk/server/source3/nmbd/asyncdns.c
r664 r745 19 19 20 20 #include "includes.h" 21 21 #include "nmbd/nmbd.h" 22 22 #ifdef __OS2__ 23 23 #define pipe(A) os2_pipe(A) … … 142 142 { 143 143 int fd1[2], fd2[2]; 144 NTSTATUS status; 144 145 145 146 CatchChild(); … … 167 168 CatchSignal(SIGUSR1, SIG_IGN); 168 169 CatchSignal(SIGHUP, SIG_IGN); 169 CatchSignal(SIGTERM, SIGNAL_CAST sig_term ); 170 171 if (!NT_STATUS_IS_OK(reinit_after_fork(nmbd_messaging_context(), 172 nmbd_event_context(), true))) { 170 CatchSignal(SIGTERM, sig_term); 171 172 status = reinit_after_fork(nmbd_messaging_context(), 173 nmbd_event_context(), 174 procid_self(), true); 175 176 if (!NT_STATUS_IS_OK(status)) { 173 177 DEBUG(0,("reinit_after_fork() failed\n")); 174 178 smb_panic("reinit_after_fork() failed"); … … 263 267 p->locked = False; 264 268 265 if (p->prev)266 p->prev->next = p->next;267 else268 dns_queue = p->next;269 if (p->next)270 p->next->prev = p->prev;271 269 p2 = p->next; 270 DLIST_REMOVE(dns_queue, p); 272 271 free_packet(p); 273 272 p = p2; … … 279 278 if (dns_queue) { 280 279 dns_current = dns_queue; 281 dns_queue = dns_queue->next; 282 if (dns_queue) 283 dns_queue->prev = NULL; 284 dns_current->next = NULL; 280 DLIST_REMOVE(dns_queue, dns_queue); 285 281 286 282 if (!write_child(dns_current)) { … … 309 305 } else { 310 306 p->locked = True; 311 p->next = dns_queue; 312 p->prev = NULL; 313 if (p->next) 314 p->next->prev = p; 315 dns_queue = p; 307 DLIST_ADD(dns_queue, p); 316 308 } 317 309
Note:
See TracChangeset
for help on using the changeset viewer.