use _exit to exit a child
authorAndrew Tridgell <tridge@samba.org>
Fri, 26 Dec 1997 09:57:40 +0000 (09:57 +0000)
committerAndrew Tridgell <tridge@samba.org>
Fri, 26 Dec 1997 09:57:40 +0000 (09:57 +0000)
(This used to be commit 992b1cbc143be910d9b8e65afdc82c43d33650a5)

source3/nmbd/asyncdns.c

index 1ee9dab065855f6ab7dbea3950a5a43118e2d3ba..e0d262f72ca4a681c5f37f2dcd54dc3de378b098 100644 (file)
@@ -111,11 +111,7 @@ static void asyncdns_process(void)
 
 static int sig_term()
 {
-  BlockSignals(True,SIGTERM);
-  DEBUG(0,("async dns child. Got SIGTERM: going down...\n"));
-
-  exit(0);
+  _exit(0);
   /* Keep compiler happy.. */
   return 0;
 }
@@ -149,7 +145,7 @@ void start_async_dns(void)
        signal(SIGUSR2, SIG_IGN);
        signal(SIGUSR1, SIG_IGN);
        signal(SIGHUP, SIG_IGN);
-        signal( SIGTERM, SIGNAL_CAST sig_term );
+        signal(SIGTERM, SIGNAL_CAST sig_term );
 
        asyncdns_process();
 }