summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorHerb Lewis <herb@samba.org>2000-10-12 17:58:40 +0000
committerHerb Lewis <herb@samba.org>2000-10-12 17:58:40 +0000
commit53ce2f7012d55e200082fa7bc04b27d9dcfcf706 (patch)
treecf50618f72ff667900a16bd5c086ca76a75f09a1 /source3/lib
parent7a42a9da7d26ce4635aa479f93de6794317b2f29 (diff)
downloadsamba-53ce2f7012d55e200082fa7bc04b27d9dcfcf706.tar.gz
samba-53ce2f7012d55e200082fa7bc04b27d9dcfcf706.tar.bz2
samba-53ce2f7012d55e200082fa7bc04b27d9dcfcf706.zip
lib/messages.c add debug print for receipt of PING and
REQ_DEBUGLEVEL messages utils/smbcontrol.c allow "q" to exit interactive mode. Exit on error from message_init. (This used to be commit cda8c0439113dcce02a681b0aaddf69326c0ec9a)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/messages.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/lib/messages.c b/source3/lib/messages.c
index 1b225b1ed3..53c911e8b0 100644
--- a/source3/lib/messages.c
+++ b/source3/lib/messages.c
@@ -70,6 +70,7 @@ a useful function for testing the message system
****************************************************************************/
void ping_message(int msg_type, pid_t src, void *buf, size_t len)
{
+ DEBUG(1,("INFO: Received PING message from PID %d\n",src));
message_send_pid(src, MSG_PONG, buf, len);
}
@@ -80,6 +81,7 @@ void debuglevel_message(int msg_type, pid_t src, void *buf, size_t len)
{
int level;
+ DEBUG(1,("INFO: Received REQ_DEBUGLEVEL message from PID %d\n",src));
level = DEBUGLEVEL;
message_send_pid(src, MSG_DEBUGLEVEL, &level, sizeof(int));
}