summaryrefslogtreecommitdiffstats
path: root/source/smbd/process.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/smbd/process.c')
-rw-r--r--source/smbd/process.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/source/smbd/process.c b/source/smbd/process.c
index e882853e6de..1299fd20e3a 100644
--- a/source/smbd/process.c
+++ b/source/smbd/process.c
@@ -47,7 +47,6 @@ extern int global_oplock_break;
extern userdom_struct current_user_info;
extern int smb_read_error;
extern VOLATILE sig_atomic_t reload_after_sighup;
-extern VOLATILE sig_atomic_t got_sig_term;
extern BOOL global_machine_password_needs_changing;
extern fstring global_myworkgroup;
extern pstring global_myname;
@@ -109,10 +108,9 @@ BOOL push_oplock_pending_smb_message(char *buf, int msg_len)
}
/****************************************************************************
- Do all async processing in here. This includes UDB oplock messages, kernel
- oplock messages, change notify events etc.
+do all async processing in here. This includes UDB oplock messages, kernel
+oplock messages, change notify events etc.
****************************************************************************/
-
static void async_processing(fd_set *fds, char *buffer, int buffer_len)
{
/* check for oplock messages (both UDP and kernel) */
@@ -120,10 +118,6 @@ static void async_processing(fd_set *fds, char *buffer, int buffer_len)
process_local_message(buffer, buffer_len);
}
- if (got_sig_term) {
- exit_server("Caught TERM signal");
- }
-
/* check for async change notify events */
process_pending_change_notify_queue(0);
@@ -132,7 +126,7 @@ static void async_processing(fd_set *fds, char *buffer, int buffer_len)
change_to_root_user();
DEBUG(1,("Reloading services after SIGHUP\n"));
reload_services(False);
- reload_after_sighup = 0;
+ reload_after_sighup = False;
}
}
@@ -1069,7 +1063,7 @@ void check_reload(int t)
if (reload_after_sighup || (t >= last_smb_conf_reload_time+SMBD_RELOAD_CHECK))
{
reload_services(True);
- reload_after_sighup = 0;
+ reload_after_sighup = False;
last_smb_conf_reload_time = t;
}
}