fixed the nmbd fork bomb. It was a silly mistake, as
authorAndrew Tridgell <tridge@samba.org>
Thu, 17 Sep 1998 08:27:46 +0000 (08:27 +0000)
committerAndrew Tridgell <tridge@samba.org>
Thu, 17 Sep 1998 08:27:46 +0000 (08:27 +0000)
expected. wins_write_database() didn't exit after doing its stuff, so
when it returned you had two copies of nmbd :)

source/nmbd/nmbd_winsserver.c

index c81e0a913eff5510d3ca072e8341152506ca488c..64f314297267da6b32a9f643f7aa4d86475596fa 100644 (file)
@@ -1614,4 +1614,7 @@ void wins_write_database(BOOL background)
   chmod(fnamenew,0644);
   unlink(fname);
   rename(fnamenew,fname);
+  if (background) {
+         _exit(0);
+  }
 }