aboutsummaryrefslogtreecommitdiff
path: root/src/handler.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/handler.cc')
-rw-r--r--src/handler.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/handler.cc b/src/handler.cc
index 64d63e7..2e966f6 100644
--- a/src/handler.cc
+++ b/src/handler.cc
@@ -134,9 +134,8 @@ void sigint_handler([[maybe_unused]] int sig)
{
kill(-pid, SIGINT);
} else {
- char *buf = "\n";
tcflush(STDIN_FILENO, TCIFLUSH);
- ioctl(STDIN_FILENO, TIOCSTI, buf);
+ ioctl(STDIN_FILENO, TIOCSTI, "\n");
}
sigprocmask(SIG_SETMASK, &prev, nullptr);