diff options
| -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: |
