summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-04-13 20:22:40 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-04-13 20:22:40 +0000
commit0bb9c88bff2b91bc098d8809a53d431ef22969fc (patch)
treee8f510c8dc31efcaac6da8b016801bf5ffdc8cf0 /usr.bin
parenta626429b1f093c6878eeca36e75d87c4a9f434fc (diff)
do not (continue) on a stdin pipe
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/mail/collect.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/usr.bin/mail/collect.c b/usr.bin/mail/collect.c
index 4ae264dead1..e4dd7c5fd4f 100644
--- a/usr.bin/mail/collect.c
+++ b/usr.bin/mail/collect.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: collect.c,v 1.3 1997/04/10 15:33:50 deraadt Exp $ */
+/* $OpenBSD: collect.c,v 1.4 1997/04/13 20:22:39 deraadt Exp $ */
/* $NetBSD: collect.c,v 1.6 1996/06/08 19:48:16 christos Exp $ */
/*
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)collect.c 8.2 (Berkeley) 4/19/94";
#else
-static char rcsid[] = "$OpenBSD: collect.c,v 1.3 1997/04/10 15:33:50 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: collect.c,v 1.4 1997/04/13 20:22:39 deraadt Exp $";
#endif
#endif /* not lint */
@@ -156,8 +156,10 @@ cont:
fprintf(stderr,
"\n(Interrupt -- one more to kill letter)\n");
} else {
- printf("(continue)\n");
- fflush(stdout);
+ if (isatty(0)) {
+ printf("(continue)\n");
+ fflush(stdout);
+ }
}
}
for (;;) {