diff options
author | Todd C. Miller <Todd.Miller@sudo.ws> | 2023-04-19 15:09:23 -0600 |
---|---|---|
committer | Todd C. Miller <Todd.Miller@sudo.ws> | 2023-04-19 15:09:23 -0600 |
commit | 3606e09f30aeed3ab6d720581b77035c86eedc70 (patch) | |
tree | bef4bc4a24a2d06c6673c7d8c1af0d280c874b11 | |
parent | b7dc12f149082506ab125eb49bfc1e3a55608c2f (diff) | |
download | sudo-3606e09f30aeed3ab6d720581b77035c86eedc70.tar.gz |
More accurate description of what happens for "sudo -b".
-rw-r--r-- | src/exec.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/exec.c b/src/exec.c index 4d97c4976..d30252a3e 100644 --- a/src/exec.c +++ b/src/exec.c @@ -440,7 +440,11 @@ sudo_execute(struct command_details *details, cstat->val = errno; debug_return_int(-1); case 0: - /* child continues without controlling terminal */ + /* + * Child continues in an orphaned process group. + * Reads from the terminal fail with EIO. + * Writes succeed unless tostop is set on the terminal. + */ (void)setpgid(0, 0); break; default: |