]> granicus.if.org Git - sudo/commit
Reorganize the command execution code to separate out the pty and
authorTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 3 Mar 2017 17:35:11 +0000 (10:35 -0700)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 3 Mar 2017 17:35:11 +0000 (10:35 -0700)
commit6dba84dca9e53ea5fc12c59faab6bdf3bbab8f51
treec41fadcc2a867e9eb5a2332f1694dbe800899395
parent4b1f0c41766c6871ebb34dcd9e34c07f6c30f128
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).
MANIFEST
src/Makefile.in
src/exec.c
src/exec_monitor.c [new file with mode: 0644]
src/exec_nopty.c [new file with mode: 0644]
src/exec_pty.c
src/sudo_exec.h