Commit 1743738
src: fix the false isatty() issue on IBMi
On IBMi PASE isatty() always returns true for stdin, stdout and stderr.
Use ioctl() instead to identify whether it's actually a TTY.
PR-URL: #30829
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: David Carlier <devnexen@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>1 parent 50afd34 commit 1743738Copy full SHA for 1743738
File tree
Expand file treeCollapse file tree
1 file changed
+10
-0
lines changedOpen diff view settings
Filter options
- src
Expand file treeCollapse file tree
1 file changed
+10
-0
lines changedOpen diff view settings
Collapse file
+10Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
97 | 97 | |
98 | 98 | |
99 | 99 | |
| 100 | + |
| 101 | + |
| 102 | + |
100 | 103 | |
101 | 104 | |
102 | 105 | |
| ||
521 | 524 | |
522 | 525 | |
523 | 526 | |
| 527 | + |
| 528 | + |
| 529 | + |
| 530 | + |
| 531 | + |
| 532 | + |
524 | 533 | |
| 534 | + |
525 | 535 | |
526 | 536 | |
527 | 537 | |
|
0 commit comments