summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bin/ksh/main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/ksh/main.c b/bin/ksh/main.c
index 8d16df7f837..85d2327599c 100644
--- a/bin/ksh/main.c
+++ b/bin/ksh/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.19 1999/11/14 18:18:39 millert Exp $ */
+/* $OpenBSD: main.c,v 1.20 2000/12/19 21:48:54 markus Exp $ */
/*
* startup, main loop, environments and error handling
@@ -338,7 +338,8 @@ main(argc, argv)
{
struct stat s_stdin;
- if (fstat(0, &s_stdin) >= 0 && S_ISCHR(s_stdin.st_mode))
+ if (fstat(0, &s_stdin) >= 0 && S_ISCHR(s_stdin.st_mode) &&
+ Flag(FTALKING))
reset_nonblock(0);
}