diff options
| author | John Wiseman <john.wiseman@cantab.net> | 2023-07-29 07:23:11 +0100 |
|---|---|---|
| committer | John Wiseman <john.wiseman@cantab.net> | 2023-07-29 07:23:11 +0100 |
| commit | b77dbd8ce169fc6e575b3f471150b14832e6e991 (patch) | |
| tree | 80ccc19fcc05db23d0a73938c14647ba629822af /LinBPQ.c | |
| parent | ed81fc5267a230d12a2519e61707025087ec6234 (diff) | |
6.0.23.8123.82
Diffstat (limited to 'LinBPQ.c')
| -rw-r--r-- | LinBPQ.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -749,7 +749,10 @@ int main(int argc, char * argv[]) // Disable Console Terminal if stdout redirected
- if (!isatty(STDOUT_FILENO))
+// printf("STDOUT %d\n",isatty(STDOUT_FILENO));
+// printf("STDIN %d\n",isatty(STDIN_FILENO));
+
+ if (!isatty(STDOUT_FILENO) || !isatty(STDIN_FILENO))
Redirected = 1;
#endif
|
