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:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user