From 840279f3424eb92d1c4b55e1f9a1aca938b087ca Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 14 Mar 2002 02:15:08 +0000 Subject: Now we have reliable signals take SIGTERM inband. Jeremy. (This used to be commit cad82926a8baf7605cef81f0e0d4daa8e527e6ee) --- source3/nsswitch/winbindd.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'source3/nsswitch') diff --git a/source3/nsswitch/winbindd.c b/source3/nsswitch/winbindd.c index a9abcd3e6e..9058fa4174 100644 --- a/source3/nsswitch/winbindd.c +++ b/source3/nsswitch/winbindd.c @@ -649,13 +649,14 @@ struct winbindd_state server_state; /* Server state information */ int main(int argc, char **argv) { + extern BOOL AllowDebugChange; extern pstring global_myname; extern fstring global_myworkgroup; extern BOOL append_log; pstring logfile; int accept_sock; BOOL interactive = False; - int opt, new_debuglevel = -1; + int opt; /* glibc (?) likes to print "User defined signal 1" and exit if a SIGUSR2 is received before a handler is installed */ @@ -698,7 +699,8 @@ int main(int argc, char **argv) /* Run with specified debug level */ case 'd': - new_debuglevel = atoi(optarg); + DEBUGLEVEL = atoi(optarg); + AllowDebugChange = False; break; /* Load a different smb.conf file */ @@ -740,9 +742,6 @@ int main(int argc, char **argv) fstrcpy(global_myworkgroup, lp_workgroup()); - if (new_debuglevel != -1) - DEBUGLEVEL = new_debuglevel; - if (!interactive) become_daemon(); -- cgit