about summary refs log tree commit diff
path: root/rdd.c
diff options
context:
space:
mode:
Diffstat (limited to 'rdd.c')
-rw-r--r--rdd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/rdd.c b/rdd.c
index e6eb523..4a12032 100644
--- a/rdd.c
+++ b/rdd.c
@@ -32,6 +32,9 @@ usage:
 	if (argc > optind)
 		goto usage;
 
+	if (isatty(1))
+		fail(5, "cowardly not dumping to tty\n");
+
 	if ((fd = open(src, O_RDONLY)) < 0)
 		fail(2, "failed to open random source\n");