aboutsummaryrefslogtreecommitdiffstats
path: root/timer.c
diff options
context:
space:
mode:
Diffstat (limited to 'timer.c')
-rw-r--r--timer.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/timer.c b/timer.c
index 87c90a3..462aee9 100644
--- a/timer.c
+++ b/timer.c
@@ -165,6 +165,9 @@ int main(int argc, char **argv)
unsigned long total_seconds = 0;
+ if (!isatty(STDOUT_FILENO))
+ error(1, 0, "Error: stdout is not a tty");
+
if (argc < 2) {
printf("Not enough arguments.\n");
usage(argv[0]);