mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
terminal: make the event FD used to delay shutdown non-blocking
This commit is contained in:
parent
f5e27b49eb
commit
3762f1f205
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue