linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
To: linux-bluetooth@vger.kernel.org
Subject: [PATCH obexd 3/3] client: Add handler for SIGUSR2
Date: Mon,  7 May 2012 17:00:53 -0700	[thread overview]
Message-ID: <1336435253-19081-3-git-send-email-luiz.dentz@gmail.com> (raw)
In-Reply-To: <1336435253-19081-1-git-send-email-luiz.dentz@gmail.com>

From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>

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


  parent reply	other threads:[~2012-05-08  0:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-08  0:00 [PATCH obexd 1/3] core: Use signalfd to handle unix signals Luiz Augusto von Dentz
2012-05-08  0:00 ` [PATCH obexd 2/3] client: " Luiz Augusto von Dentz
2012-05-08  0:00 ` Luiz Augusto von Dentz [this message]
2012-05-08  6:16   ` [PATCH obexd 3/3] client: Add handler for SIGUSR2 Gustavo Padovan
2012-05-08  0:50 ` [PATCH obexd 1/3] core: Use signalfd to handle unix signals Johan Hedberg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1336435253-19081-3-git-send-email-luiz.dentz@gmail.com \
    --to=luiz.dentz@gmail.com \
    --cc=linux-bluetooth@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).