Linux bluetooth development
 help / color / mirror / Atom feed
From: Szymon Janc <szymon.janc@codecoup.pl>
To: linux-bluetooth@vger.kernel.org
Cc: Szymon Janc <szymon.janc@codecoup.pl>
Subject: [PATCH] shared/shell: Fix SIGINT handling
Date: Thu, 25 Jan 2018 13:03:11 +0100	[thread overview]
Message-ID: <20180125120311.17844-1-szymon.janc@codecoup.pl> (raw)

This fix ctrl-c combination working only once.
---
 src/shared/shell.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/shared/shell.c b/src/shared/shell.c
index 6cdea1c7e..f1b85f202 100644
--- a/src/shared/shell.c
+++ b/src/shared/shell.c
@@ -623,7 +623,7 @@ static bool signal_read(struct io *io, void *user_data)
 			rl_crlf();
 			rl_on_new_line();
 			rl_redisplay();
-			break;
+			return true;
 		}
 
 		/*
-- 
2.14.3


             reply	other threads:[~2018-01-25 12:03 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-25 12:03 Szymon Janc [this message]
2018-01-26 10:00 ` [PATCH] shared/shell: Fix SIGINT handling Szymon Janc

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=20180125120311.17844-1-szymon.janc@codecoup.pl \
    --to=szymon.janc@codecoup.pl \
    --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