diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2012-05-07 17:00:53 -0700 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2012-05-07 17:49:46 -0700 |
commit | 009b18e2bdedd9c2f96f5da44c0ecdaa260d0477 (patch) | |
tree | 8d1490ccbd32eef0387c52539b29e454d7140caf | |
parent | d9e161043a495217955924a63f4edc7fb6d6bfd3 (diff) | |
download | obexd-009b18e2bdedd9c2f96f5da44c0ecdaa260d0477.tar.gz |
client: Add handler for SIGUSR2
This signal enables debug for obed so just do the same for obex-client
-rw-r--r-- | 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) { |