summaryrefslogtreecommitdiff
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
commit65a21bcbddd768a5aa41fc684150d9c5ceb9d5d9 (patch)
tree30a41b9ad4aa7beec2a06f11bf3f79dff72fbb59
parent7f49012b1d9f7f0bd00488fd2d2d3853f8403b60 (diff)
downloadsamba-65a21bcbddd768a5aa41fc684150d9c5ceb9d5d9.tar.gz
samba-65a21bcbddd768a5aa41fc684150d9c5ceb9d5d9.tar.bz2
samba-65a21bcbddd768a5aa41fc684150d9c5ceb9d5d9.zip
use _exit to exit a child
(This used to be commit 992b1cbc143be910d9b8e65afdc82c43d33650a5)
-rw-r--r--source3/nmbd/asyncdns.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/source3/nmbd/asyncdns.c b/source3/nmbd/asyncdns.c
index 1ee9dab065..e0d262f72c 100644
--- a/source3/nmbd/asyncdns.c
+++ b/source3/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();
}