diff options
author | Samba Release Account <samba-bugs@samba.org> | 1996-07-04 19:19:26 +0000 |
---|---|---|
committer | Samba Release Account <samba-bugs@samba.org> | 1996-07-04 19:19:26 +0000 |
commit | 7812ff08135318e74f5c286fe4773de8d1423969 (patch) | |
tree | 0ff953c4eb4bf2dfa3eb27d5f227a8a8c1384461 /source3/nmbd | |
parent | 9a08bb015caaf36095244d00b83184e0ebcfdfef (diff) | |
download | samba-7812ff08135318e74f5c286fe4773de8d1423969.tar.gz samba-7812ff08135318e74f5c286fe4773de8d1423969.tar.bz2 samba-7812ff08135318e74f5c286fe4773de8d1423969.zip |
modified become_master() to a state-based system. becoming a master
is now performed in stages: wait for each NetBIOS name to be
successfully registered before proceeding to the next stage.
tied implicit name registration and release (broadcast method) to the
same piece of code as explicit method (via WINS server).
created special_browser_name() function that checks __MSBROWSE__
name: this name is ignored by WINS servers apparently.
fixed likely incompatibility between refresh_my_names() and add_my_names().
(netbios entries were unlikely to be refreshed).
NOTE: none of these changes have been tested. at all.
lkcl
(This used to be commit 7719fb06524a66ce5e3f30f3152ddb1e200c97f3)
Diffstat (limited to 'source3/nmbd')
-rw-r--r-- | source3/nmbd/nmbd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/nmbd/nmbd.c b/source3/nmbd/nmbd.c index 1d541ea95f..187ef8e7b7 100644 --- a/source3/nmbd/nmbd.c +++ b/source3/nmbd/nmbd.c @@ -55,8 +55,8 @@ extern struct in_addr ipzero; /**************************************************************************** -catch a sigterm -****************************************************************************/ + catch a sigterm + ****************************************************************************/ static int sig_term() { BlockSignals(True); @@ -457,7 +457,7 @@ static void usage(char *pname) fault_setup(fault_continue); - signal(SIGHUP,SIGNAL_CAST sig_hup); + signal(SIGHUP ,SIGNAL_CAST sig_hup); signal(SIGTERM,SIGNAL_CAST sig_term); while ((opt = getopt(argc, argv, "s:T:I:C:bAi:B:N:Rn:l:d:Dp:hSH:G:")) != EOF) |