[sudo-commits] sudo changeset 10859:fe239d2a3cbd

Todd C. Miller Todd.Miller at courtesan.com
Fri Mar 3 11:10:20 MST 2017


changeset:	10859:fe239d2a3cbd in /raid/repos/sudo
details:	https://www.sudo.ws/repos/sudo/rev/fe239d2a3cbd
user:		Todd C. Miller <Todd.Miller at courtesan.com>
date:		Fri Mar 03 10:35:11 2017 -0700

Log Message:
	Reorganize the command execution code to separate out the pty and
	non-pty code paths into their own event loops.  The non-pty exec
	code is now contained in exec_nopty.c and the pty exec code is split
	between exec_pty.c (parent process) and exec_monitor.c (session leader).
	This results in a small bit of duplicated code but improves readability.
	Some of the duplicated code will fall out in future changes to the
	event subsystem (the signal pipe).

diffstat:

 MANIFEST           |     2 +
 src/Makefile.in    |    28 +-
 src/exec.c         |   945 +++++-----------------------------------
 src/exec_monitor.c |   664 +++++++++++++++++++++++++++++
 src/exec_nopty.c   |   505 ++++++++++++++++++++++
 src/exec_pty.c     |  1187 ++++++++++++++++++++++-----------------------------
 src/sudo_exec.h    |    48 +-
 7 files changed, 1874 insertions(+), 1505 deletions(-)


More information about the sudo-commits mailing list