* [PATCH] shared/shell: Fix SIGINT handling
@ 2018-01-25 12:03 Szymon Janc
2018-01-26 10:00 ` Szymon Janc
0 siblings, 1 reply; 2+ messages in thread
From: Szymon Janc @ 2018-01-25 12:03 UTC (permalink / raw)
To: linux-bluetooth; +Cc: Szymon Janc
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] shared/shell: Fix SIGINT handling
2018-01-25 12:03 [PATCH] shared/shell: Fix SIGINT handling Szymon Janc
@ 2018-01-26 10:00 ` Szymon Janc
0 siblings, 0 replies; 2+ messages in thread
From: Szymon Janc @ 2018-01-26 10:00 UTC (permalink / raw)
To: linux-bluetooth
On Thursday, 25 January 2018 13:03:11 CET Szymon Janc wrote:
> 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;
> }
>
> /*
Applied.
--
pozdrawiam
Szymon Janc
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-01-26 10:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-25 12:03 [PATCH] shared/shell: Fix SIGINT handling Szymon Janc
2018-01-26 10:00 ` Szymon Janc
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox