diff options
author | Andrew Tridgell <tridge@samba.org> | 1998-09-17 08:27:46 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1998-09-17 08:27:46 +0000 |
commit | d66a657f90b1c8410f2d49be87539954a39a0469 (patch) | |
tree | ff7d71e598450d369132ec449ac72ed8a2b6a72e | |
parent | 1eef953aca34f76b464f06372e927b08d33b2022 (diff) | |
download | samba-d66a657f90b1c8410f2d49be87539954a39a0469.tar.gz samba-d66a657f90b1c8410f2d49be87539954a39a0469.tar.bz2 samba-d66a657f90b1c8410f2d49be87539954a39a0469.zip |
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 :)
(This used to be commit 5e6488d4830016ea720a644c1b1ae25b336d3b8b)
-rw-r--r-- | source3/nmbd/nmbd_winsserver.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/nmbd/nmbd_winsserver.c b/source3/nmbd/nmbd_winsserver.c index c81e0a913e..64f3142972 100644 --- a/source3/nmbd/nmbd_winsserver.c +++ b/source3/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); + } } |