aboutsummaryrefslogtreecommitdiffstats
path: root/src/mds-echo.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-04-18 16:36:12 +0200
committerMattias Andrée <maandree@operamail.com>2015-04-18 16:36:12 +0200
commita87279a578c9e8afd3fba67ec363bc4194fbb815 (patch)
tree15b1758778cd3007bb19ceb040520386fd5ef980 /src/mds-echo.c
parentm doc + iprint and iprintf macros + siginfo on mds, mds-vt and mds-respawn (diff)
downloadmds-a87279a578c9e8afd3fba67ec363bc4194fbb815.tar.gz
mds-a87279a578c9e8afd3fba67ec363bc4194fbb815.tar.bz2
mds-a87279a578c9e8afd3fba67ec363bc4194fbb815.tar.xz
siginfo: mds-clipboard, mds-echo, mds-kkbd
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--src/mds-echo.c16
1 files changed, 16 insertions, 0 deletions
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);
+}
+