summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-09-17 08:27:46 +0000
committerAndrew Tridgell <tridge@samba.org>1998-09-17 08:27:46 +0000
commit5e6488d4830016ea720a644c1b1ae25b336d3b8b (patch)
tree4b92d58d26fdada5e18b2bd13d692883ee1ca802
parent31b4048362c63ab19e9ef35453c3763eec8b8f2b (diff)
downloadsamba-5e6488d4830016ea720a644c1b1ae25b336d3b8b.tar.gz
fixed the nmbd fork bomb. It was a silly mistake, as
expected. wins_write_database() didn't exit after doing its stuff, so when it returned you had two copies of nmbd :)
-rw-r--r--source/nmbd/nmbd_winsserver.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/nmbd/nmbd_winsserver.c b/source/nmbd/nmbd_winsserver.c
index c81e0a913ef..64f31429726 100644
--- a/source/nmbd/nmbd_winsserver.c
+++ b/source/nmbd/nmbd_winsserver.c
@@ -1614,4 +1614,7 @@ void wins_write_database(BOOL background)
chmod(fnamenew,0644);
unlink(fname);
rename(fnamenew,fname);
+ if (background) {
+ _exit(0);
+ }
}