[PATCH obexd 3/3] client: Add handler for SIGUSR2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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;
+	case SIGUSR2:
+		__obex_log_enable_debug();
+		break;
 	case SIGPIPE:
 		/* ignore */
@@ -87,6 +90,7 @@ static guint setup_signalfd(void)
 	sigaddset(&mask, SIGINT);
 	sigaddset(&mask, SIGTERM);
+	sigaddset(&mask, SIGUSR2);
 	sigaddset(&mask, SIGPIPE);
 	if (sigprocmask(SIG_BLOCK, &mask, NULL) < 0) {

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

[Bluez Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]    [Yosemite Photos]    [Free Online Dating]     [Bluez Devel]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Devices]     [Big List of Linux Books]

Add to Google Powered by Linux