[sudo-commits] sudo changeset 14601:2cf041ccbd98

Todd C. Miller Todd.Miller at sudo.ws
Wed Mar 1 13:39:05 MST 2023


changeset:	14601:2cf041ccbd98 in /raid/repos/sudo
details:	https://www.sudo.ws/repos/sudo/rev/2cf041ccbd98
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