[sudo-commits] sudo changeset 8370:0d4cfce9e3cd
Todd C. Miller
Todd.Miller at courtesan.com
Mon Aug 27 15:40:32 EDT 2012
changeset: 8370:0d4cfce9e3cd in /home/hg/sudo
details: http://www.sudo.ws/repos/sudo/rev/0d4cfce9e3cd
user: Todd C. Miller <Todd.Miller at courtesan.com>
date: Mon Aug 27 15:33:31 2012 -0400
Log Message:
Shells typically change their process group when they start up so
that they can implement job control. Most well-behaved shells
change the pgrp back to its original value before suspending so we
must not try to restore in that case, lest we race with the child
upon resume, potentially stopping sudo with SIGTTOU while the command
continues to run. Some shells, such as pdksh, just suspend the
shell by sending SIGSTOP to themselves without restoring the pgrp.
In this case we need to change the pgrp back for them.
Should fix bug #568
diffstat:
exec.c | 24 +++++++++++++++++++++---
1 files changed, 21 insertions(+), 3 deletions(-)
More information about the sudo-commits
mailing list