summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTodd C. Miller <Todd.Miller@sudo.ws>2023-03-21 09:22:53 -0600
committerTodd C. Miller <Todd.Miller@sudo.ws>2023-03-21 09:22:53 -0600
commita6f593ea89d2692631d9c87cad33c70bf537721e (patch)
treed53e408eeaf6464321fe2a13dbfaf158e9c84ddd /src
parenta3d16a29b128e241e37160b7ef4eff2171a5f40e (diff)
downloadsudo-a6f593ea89d2692631d9c87cad33c70bf537721e.tar.gz
visudo: restore controlling terminal after running the editor.
Otherwise, visudo will get SIGTTOU if it tries to write to the terminal after the editor finishes. Also avoid races by setting the process group ID in both the parent and child, and grant the controlling terminal in the parent, not the child.
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions