summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorHerb Lewis <herb@samba.org>2002-08-22 23:34:27 +0000
committerHerb Lewis <herb@samba.org>2002-08-22 23:34:27 +0000
commite6de7c24a5d60f0481eef9695780890e360802f9 (patch)
treed45f6b58b7b94a0b09ff3a8570720dffef14f767 /source3/smbd
parent89586f0b7c256c39a72dfac798e1882c97b24838 (diff)
downloadsamba-e6de7c24a5d60f0481eef9695780890e360802f9.tar.gz
samba-e6de7c24a5d60f0481eef9695780890e360802f9.tar.bz2
samba-e6de7c24a5d60f0481eef9695780890e360802f9.zip
move where got_sig_term and reload_after_sighup are defined.
populate cli structure with called name and calling name even for port 445 connects. (This used to be commit 123eee6206d9afb28c169540dc63824957b505f4)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/process.c4
-rw-r--r--source3/smbd/server.c6
2 files changed, 4 insertions, 6 deletions
diff --git a/source3/smbd/process.c b/source3/smbd/process.c
index 7c269b0134..f2b2a5c15a 100644
--- a/source3/smbd/process.c
+++ b/source3/smbd/process.c
@@ -42,8 +42,8 @@ extern int last_message;
extern int global_oplock_break;
extern userdom_struct current_user_info;
extern int smb_read_error;
-extern SIG_ATOMIC_T reload_after_sighup;
-extern SIG_ATOMIC_T got_sig_term;
+SIG_ATOMIC_T reload_after_sighup = 0;
+SIG_ATOMIC_T got_sig_term = 0;
extern BOOL global_machine_password_needs_changing;
extern fstring global_myworkgroup;
extern pstring global_myname;
diff --git a/source3/smbd/server.c b/source3/smbd/server.c
index b2b905cec3..c748a87da2 100644
--- a/source3/smbd/server.c
+++ b/source3/smbd/server.c
@@ -33,6 +33,8 @@ int last_message = -1;
#define LAST_MESSAGE() smb_fn_name(last_message)
extern pstring user_socket_options;
+extern SIG_ATOMIC_T got_sig_term;
+extern SIG_ATOMIC_T reload_after_sighup;
#ifdef WITH_DFS
extern int dcelogin_atmost_once;
@@ -61,8 +63,6 @@ static void smbd_set_server_fd(int fd)
Terminate signal.
****************************************************************************/
-SIG_ATOMIC_T got_sig_term = 0;
-
static void sig_term(void)
{
got_sig_term = 1;
@@ -73,8 +73,6 @@ static void sig_term(void)
Catch a sighup.
****************************************************************************/
-SIG_ATOMIC_T reload_after_sighup = 0;
-
static void sig_hup(int sig)
{
reload_after_sighup = 1;