summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorPaul Janzen <pjanzen@cvs.openbsd.org>2000-07-23 21:50:21 +0000
committerPaul Janzen <pjanzen@cvs.openbsd.org>2000-07-23 21:50:21 +0000
commitc3d89f57b176f90f6f6d9364626cd239fd9fe553 (patch)
tree775ac15ecf89c6c42882b61b0699d77382f79f41 /games
parent02987a4b80b90523e231e88ea50eec97b413715f (diff)
Die more cleanly if stdin can't be read from.
Diffstat (limited to 'games')
-rw-r--r--games/mille/misc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/games/mille/misc.c b/games/mille/misc.c
index 6b3f7aae583..fdee29f7cfb 100644
--- a/games/mille/misc.c
+++ b/games/mille/misc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: misc.c,v 1.5 1999/09/30 03:24:32 pjanzen Exp $ */
+/* $OpenBSD: misc.c,v 1.6 2000/07/23 21:50:20 pjanzen Exp $ */
/* $NetBSD: misc.c,v 1.4 1995/03/24 05:01:54 cgd Exp $ */
/*
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)misc.c 8.1 (Berkeley) 5/31/93";
#else
-static char rcsid[] = "$OpenBSD: misc.c,v 1.5 1999/09/30 03:24:32 pjanzen Exp $";
+static char rcsid[] = "$OpenBSD: misc.c,v 1.6 2000/07/23 21:50:20 pjanzen Exp $";
#endif
#endif /* not lint */
@@ -265,6 +265,6 @@ readch()
for (cnt = 0; read(STDIN_FILENO, &c, 1) <= 0; cnt++)
if (cnt > 100)
- exit(1);
+ die(1);
return c;
}