diff options
Diffstat (limited to 'source3/lib/messages.c')
-rw-r--r-- | source3/lib/messages.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/source3/lib/messages.c b/source3/lib/messages.c index 258610f409..1b225b1ed3 100644 --- a/source3/lib/messages.c +++ b/source3/lib/messages.c @@ -74,6 +74,17 @@ void ping_message(int msg_type, pid_t src, void *buf, size_t len) } /**************************************************************************** +return current debug level +****************************************************************************/ +void debuglevel_message(int msg_type, pid_t src, void *buf, size_t len) +{ + int level; + + level = DEBUGLEVEL; + message_send_pid(src, MSG_DEBUGLEVEL, &level, sizeof(int)); +} + +/**************************************************************************** Initialise the messaging functions. ****************************************************************************/ BOOL message_init(void) @@ -92,6 +103,7 @@ BOOL message_init(void) CatchSignal(SIGUSR1, SIGNAL_CAST sig_usr1); message_register(MSG_PING, ping_message); + message_register(MSG_REQ_DEBUGLEVEL, debuglevel_message); return True; } |