mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-04 07:15:29 -04: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->flash.fd = -1;
|
||||||
term->ptmx = -1;
|
term->ptmx = -1;
|
||||||
|
|
||||||
int event_fd = eventfd(0, EFD_CLOEXEC);
|
int event_fd = eventfd(0, EFD_CLOEXEC | EFD_NONBLOCK);
|
||||||
if (event_fd == -1) {
|
if (event_fd == -1) {
|
||||||
LOG_ERRNO("failed to create terminal shutdown event FD");
|
LOG_ERRNO("failed to create terminal shutdown event FD");
|
||||||
return false;
|
return false;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue