diff options
| author | Maxime Coste <mawww@kakoune.org> | 2019-11-18 20:57:49 +1100 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2019-11-18 21:00:59 +1100 |
| commit | ba621dedd60fe5088fdeb732e67366ae63b1df46 (patch) | |
| tree | 59cc229133899d3735043e669569160aeaf8ec88 /src/main.cc | |
| parent | 0dd6ea83d8c730407139d8aa2d254ec07d042751 (diff) | |
Ignore SIGTTOU
We can get this signal while suspending if a parent process (say
git-commit) has already put us in the background. We still need
to reset the termios state to exit raw input mode and make the shell
usable.
Fixes #3069
Diffstat (limited to 'src/main.cc')
| -rw-r--r-- | src/main.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.cc b/src/main.cc index e0ce1935..a6283b46 100644 --- a/src/main.cc +++ b/src/main.cc @@ -966,6 +966,7 @@ int main(int argc, char* argv[]) set_signal_handler(SIGPIPE, [](int){}); set_signal_handler(SIGINT, [](int){}); set_signal_handler(SIGCHLD, [](int){}); + set_signal_handler(SIGTTOU, SIG_IGN); const ParameterDesc param_desc{ SwitchMap{ { "c", { true, "connect to given session" } }, |
