2018-01-25 12:03:11

by Szymon Janc

[permalink] [raw]
Subject: [PATCH] shared/shell: Fix SIGINT handling

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



2018-01-26 10:00:21

by Szymon Janc

[permalink] [raw]
Subject: Re: [PATCH] shared/shell: Fix SIGINT handling

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