summaryrefslogtreecommitdiff
path: root/lib/System/Unix/Process.inc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/System/Unix/Process.inc')
-rw-r--r--lib/System/Unix/Process.inc9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/System/Unix/Process.inc b/lib/System/Unix/Process.inc
index c4ce35a208..774783f8ad 100644
--- a/lib/System/Unix/Process.inc
+++ b/lib/System/Unix/Process.inc
@@ -181,25 +181,28 @@ void Process::PreventCoreFiles() {
bool Process::StandardInIsUserInput() {
#if HAVE_ISATTY
return isatty(0);
-#endif
+#else
// If we don't have isatty, just return false.
return false;
+#endif
}
bool Process::StandardOutIsDisplayed() {
#if HAVE_ISATTY
return isatty(1);
-#endif
+#else
// If we don't have isatty, just return false.
return false;
+#endif
}
bool Process::StandardErrIsDisplayed() {
#if HAVE_ISATTY
return isatty(2);
-#endif
+#else
// If we don't have isatty, just return false.
return false;
+#endif
}
static unsigned getColumns(int FileID) {