summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-François Micouleau <jfm@samba.org>2002-03-29 14:28:38 +0000
committerJean-François Micouleau <jfm@samba.org>2002-03-29 14:28:38 +0000
commit14f0beb21cebe319c34e25dbb685c6b30fe10561 (patch)
tree915ab0b13f366e983705e280b2555393b12c595f
parent3e0c6ded6538899cbdf1f4c30669d411e07ac957 (diff)
downloadsamba-14f0beb21cebe319c34e25dbb685c6b30fe10561.tar.gz
samba-14f0beb21cebe319c34e25dbb685c6b30fe10561.tar.bz2
samba-14f0beb21cebe319c34e25dbb685c6b30fe10561.zip
added shutdown to smbd
J.F. (This used to be commit 51a5bbfee71e064c73283a090e9e922a31b1e21b)
-rw-r--r--source3/smbd/server.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/smbd/server.c b/source3/smbd/server.c
index 8a5983d784..a9f3989735 100644
--- a/source3/smbd/server.c
+++ b/source3/smbd/server.c
@@ -141,6 +141,11 @@ static BOOL open_sockets_inetd(void)
return True;
}
+static void msg_exit_server(int msg_type, pid_t src, void *buf, size_t len)
+{
+ exit_server("Got a SHUTDOWN message");
+}
+
/****************************************************************************
Open the socket communication.
@@ -242,6 +247,7 @@ max can be %d\n",
message_register(MSG_SMB_SAM_SYNC, msg_sam_sync);
message_register(MSG_SMB_SAM_REPL, msg_sam_repl);
+ message_register(MSG_SHUTDOWN, msg_exit_server);
/* now accept incoming connections - forking a new process
for each incoming connection */