[sudo-commits] sudo changeset 14531:6c74910ea869

Todd C. Miller Todd.Miller at sudo.ws
Thu Feb 2 20:14:04 MST 2023

changeset:	14531:6c74910ea869 in /raid/repos/sudo
details:	https://www.sudo.ws/repos/sudo/rev/6c74910ea869
user:		Todd C. Miller <Todd.Miller at sudo.ws>
date:		Thu Feb 02 13:55:18 2023 -0700

Log Message:
	Better background job detection when running a command in a pty.
	If sudo is not the process group leader and stdin is not a tty, we
	may be running as a background job via a shell script.  Start the
	command in the background to avoid changing the terminal mode from
	a background process.  GitHub issue #237


 src/exec_pty.c |  20 ++++++++++++++++----
 1 files changed, 16 insertions(+), 4 deletions(-)

More information about the sudo-commits mailing list