diff options
| author | Dave Hibberd <d@vehibberd.com> | 2023-08-28 20:39:34 +0100 |
|---|---|---|
| committer | Dave Hibberd <d@vehibberd.com> | 2023-08-28 20:39:34 +0100 |
| commit | 95a6ab069f03d9a60b3f0a4b3f9ed0607f6e9ad6 (patch) | |
| tree | bd7950d9d1dfc1771f5f07ec21ff39d0848a49c2 /LinBPQ.c | |
| parent | 055c1c18916113a130523e71002ef2d48f0f2ace (diff) | |
| parent | 084ecb74f6007abbb7e1578675964ac9352ef822 (diff) | |
Merge branch 'upstream/latest' into debian/latest
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
|
