Diff between f9efbe9f80ce49a9146493307f44dc946da390b8 and 68d8b41ec2fe653cff82a51c9f95a25d81ae6d50
Changed Files
| File | Additions | Deletions | Status |
| obexd/client/main.c | +4 | -0 | modified |
Full Patch
diff --git a/obexd/client/main.c b/obexd/client/main.c
index 6423f32..3eabfda 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) {