[sudo-commits] sudo changeset 15279:45dbbe36e3da
Todd C. Miller
Todd.Miller at sudo.ws
Sun Apr 28 13:47:05 MDT 2024
changeset: 15279:45dbbe36e3da in /raid/repos/sudo
tags: tip
details: https://www.sudo.ws/repos/sudo/rev/45dbbe36e3da
user: Todd C. Miller <Todd.Miller at sudo.ws>
date: Sun Apr 28 10:28:32 2024 -0600
files: src/exec_monitor.c src/exec_pty.c src/sudo.h
Log Message:
Avoid using ioctl(TIOCNOTTY) in the monitor.
We don't need to revoke the terminal in the monitor, just signal
the foreground process group. This is more portable and has the
same effect as ioctl(TIOCNOTTY) would on Linux. Since we now signal
the command from the monitor, there is no reason to forward SIGHUP
from the kernel. GitHub issue #367.
diffstat:
src/exec_monitor.c | 84 ++++++++++++++++++++++++++++-------------------------
src/exec_pty.c | 31 +++++++++++--------
src/sudo.h | 2 +-
3 files changed, 64 insertions(+), 53 deletions(-)
More information about the sudo-commits
mailing list