summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1997-12-26 09:57:40 +0000
committerAndrew Tridgell <tridge@samba.org>1997-12-26 09:57:40 +0000
commit992b1cbc143be910d9b8e65afdc82c43d33650a5 (patch)
tree8287c267025a88a690feb5b64fcd471d9b4b0581
parent64c8111574ff9fa00d5b43b146ae4d6f6bdf0565 (diff)
downloadsamba-992b1cbc143be910d9b8e65afdc82c43d33650a5.tar.gz
samba-992b1cbc143be910d9b8e65afdc82c43d33650a5.tar.xz
samba-992b1cbc143be910d9b8e65afdc82c43d33650a5.zip
use _exit to exit a child
-rw-r--r--source/nmbd/asyncdns.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/source/nmbd/asyncdns.c b/source/nmbd/asyncdns.c
index 1ee9dab0658..e0d262f72ca 100644
--- a/source/nmbd/asyncdns.c
+++ b/source/nmbd/asyncdns.c
@@ -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();
}