summaryrefslogtreecommitdiffstats
path: root/source/nmbd/asyncdns.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/nmbd/asyncdns.c')
-rw-r--r--source/nmbd/asyncdns.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/source/nmbd/asyncdns.c b/source/nmbd/asyncdns.c
index c86ee69a097..5ae2eb202da 100644
--- a/source/nmbd/asyncdns.c
+++ b/source/nmbd/asyncdns.c
@@ -1,5 +1,5 @@
/*
- Unix SMB/CIFS implementation.
+ Unix SMB/Netbios implementation.
a async DNS handler
Copyright (C) Andrew Tridgell 1997-1998
@@ -120,10 +120,8 @@ static void sig_term(int sig)
void kill_async_dns_child(void)
{
- if (child_pid > 0) {
- kill(child_pid, SIGTERM);
- child_pid = -1;
- }
+ if(child_pid != 0 && child_pid != -1)
+ kill(child_pid, SIGTERM);
}
/***************************************************************************