aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-01-10 18:25:56 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-01-10 18:25:56 +0000
commit3762f1f20507ed4776c4650f7cd1c4a6c702f0af (patch)
tree62086d6a2233285587228280c2d83f3eb7bc4df5
parentterminal: use edge-triggered FDM handler for the PTY (diff)
terminal: make the event FD used to delay shutdown non-blocking
-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;