2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 14:25:15 +00:00

In pty_close(), call del_io_events with the SUDO_EVLOOP_ONCE flag

so the event loop will exit after a single run through.  Otherwise,
we may hang at exit on non-BSD systems.
This commit is contained in:
Todd C. Miller
2016-05-20 08:12:46 -06:00
parent d8cfe62113
commit 994f86b40f

View File

@@ -893,7 +893,7 @@ pty_close(struct command_status *cstat)
(void) fcntl(io_fds[SFD_USERTTY], F_SETFL, n);
}
}
del_io_events(0);
del_io_events(SUDO_EVLOOP_ONCE);
/* Free I/O buffers. */
while ((iob = SLIST_FIRST(&iobufs)) != NULL) {