terminal: make the event FD used to delay shutdown non-blocking

This commit is contained in:
Daniel Eklöf 2020-01-10 19:25:56 +01:00
parent f5e27b49eb
commit 3762f1f205
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -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;