[sudo-commits] sudo changeset 14612:b7ea5b5e6a88

Todd C. Miller Todd.Miller at sudo.ws
Sun Mar 5 19:37:59 MST 2023


changeset:	14612:b7ea5b5e6a88 in /raid/repos/sudo
details:	https://www.sudo.ws/repos/sudo/rev/b7ea5b5e6a88
user:		Todd C. Miller <Todd.Miller at sudo.ws>
date:		Wed Mar 01 13:25:17 2023 -0700

Log Message:
	write_callback: only enable /dev/tty reader if the command is running
	This fixes a hang when there is /dev/tty data in a buffer to be
	flushed by the final call to del_io_events().  We do not want to
	re-enable the reader when flushing the buffers as part of pty_finish().
	See PR #247 for analysis of the problem and how to reproduce it.

diffstat:

 src/exec_nopty.c |  11 ++++++++---
 src/exec_pty.c   |  11 +++++++----
 2 files changed, 15 insertions(+), 7 deletions(-)



More information about the sudo-commits mailing list