From a87279a578c9e8afd3fba67ec363bc4194fbb815 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 18 Apr 2015 16:36:12 +0200 Subject: siginfo: mds-clipboard, mds-echo, mds-kkbd MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/mds-echo.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/mds-echo.c') diff --git a/src/mds-echo.c b/src/mds-echo.c index dbd8a81..6baf8a8 100644 --- a/src/mds-echo.c +++ b/src/mds-echo.c @@ -361,3 +361,19 @@ int full_send(const char* message, size_t length) return -1; } + +/** + * This function is called when a signal that + * signals that the system to dump state information + * and statistics has been received + * + * @param signo The signal that has been received + */ +void received_info(int signo) +{ + (void) signo; + iprintf("next message ID: %" PRIu32, message_id); + iprintf("connected: %s", connected ? "yes" : "no"); + iprintf("echo buffer size: %zu bytes", echo_buffer_size); +} + -- cgit v1.2.3-70-g09d2