[sudo-commits] sudo changeset 15061:36e87999dae1
Todd C. Miller
Todd.Miller at sudo.ws
Mon Sep 18 12:40:13 MDT 2023
changeset: 15061:36e87999dae1 in /raid/repos/sudo
tags: tip
details: https://www.sudo.ws/repos/sudo/rev/36e87999dae1
user: Todd C. Miller <Todd.Miller at sudo.ws>
date: Mon Sep 18 12:26:19 2023 -0600
files: src/exec_monitor.c
Log Message:
Wait on a socketpair for the parent to grant child the controlling tty.
This upgrades the error pipe to a bi-directional socketpair that
the parent will write to after it has granted the child process the
controlling terminal. That fixes an issue where the child could
end up in a tight CPU loop waiting on the parent which may not be
scheduled immediately.
diffstat:
src/exec_monitor.c | 75 +++++++++++++++++++++++++++++++++--------------------
1 files changed, 47 insertions(+), 28 deletions(-)
More information about the sudo-commits
mailing list