Commit bcbaca6
committed
exec_pty: Treat a socketpair for stdin/stdout same as a pipe for ksh
Sudo will run a command that is part of a pipeline in the background.
However, ksh appears to use a socketpair instead of a pipe for this
which broke sudo's heuristic. With this change, a command like
$ sudo cat /etc/services | head -3
will avoid setting the terminal to raw mode in ksh, which matches
the behavior of other shells.1 parent 140331b commit bcbaca6
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1241 | 1241 | | |
1242 | 1242 | | |
1243 | 1243 | | |
1244 | | - | |
| 1244 | + | |
1245 | 1245 | | |
1246 | 1246 | | |
1247 | 1247 | | |
| |||
1273 | 1273 | | |
1274 | 1274 | | |
1275 | 1275 | | |
1276 | | - | |
| 1276 | + | |
1277 | 1277 | | |
1278 | 1278 | | |
1279 | 1279 | | |
| |||
0 commit comments