[sudo-commits] sudo changeset 8367:6ac6751ffd17

Todd C. Miller Todd.Miller at courtesan.com
Mon Aug 27 11:22:52 EDT 2012


changeset:	8367:6ac6751ffd17 in /home/hg/sudo
details:	http://www.sudo.ws/repos/sudo/rev/6ac6751ffd17
user:		Todd C. Miller <Todd.Miller at courtesan.com>
date:		Mon Aug 27 10:29:59 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:

 src/exec.c |  24 +++++++++++++++++++++---
 1 files changed, 21 insertions(+), 3 deletions(-)



More information about the sudo-commits mailing list