From: Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx> This signal enables debug for obed so just do the same for obex-client --- client/main.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/client/main.c b/client/main.c index 6423f32..3eabfda 100644 --- a/client/main.c +++ b/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) { -- 1.7.7.6 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html