From 68d8b41ec2fe653cff82a51c9f95a25d81ae6d50 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Mon, 7 May 2012 17:00:53 -0700 Subject: [PATCH] obexd: Add handler for SIGUSR2 This signal enables debug for obed so just do the same for obex-client --- obexd/client/main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/obexd/client/main.c b/obexd/client/main.c index 6423f32b6..3eabfdac0 100644 --- a/obexd/client/main.c +++ b/obexd/client/main.c @@ -69,6 +69,9 @@ static gboolean signal_handler(GIOChannel *channel, GIOCondition cond, __terminated = 1; break; + case SIGUSR2: + __obex_log_enable_debug(); + break; case SIGPIPE: /* ignore */ break; @@ -87,6 +90,7 @@ static guint setup_signalfd(void) sigemptyset(&mask); sigaddset(&mask, SIGINT); sigaddset(&mask, SIGTERM); + sigaddset(&mask, SIGUSR2); sigaddset(&mask, SIGPIPE); if (sigprocmask(SIG_BLOCK, &mask, NULL) < 0) { -- 2.47.3