aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--terminal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/terminal.c b/terminal.c
index 91ab5952..31a76545 100644
--- a/terminal.c
+++ b/terminal.c
@@ -769,7 +769,7 @@ term_shutdown(struct terminal *term)
term->flash.fd = -1;
term->ptmx = -1;
- int event_fd = eventfd(0, EFD_CLOEXEC);
+ int event_fd = eventfd(0, EFD_CLOEXEC | EFD_NONBLOCK);
if (event_fd == -1) {
LOG_ERRNO("failed to create terminal shutdown event FD");
return false;