summaryrefslogtreecommitdiff
path: root/sys/stand/boot
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>1997-04-21 20:20:29 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>1997-04-21 20:20:29 +0000
commit0baad62aa40e38780a98e1dff56467c9f5011457 (patch)
tree0e9b06b2199c368206aef918310116bab28b3acc /sys/stand/boot
parent63d060a62d84b4e8a55a2dfd461ac1b50528c505 (diff)
usleep testing code
Diffstat (limited to 'sys/stand/boot')
-rw-r--r--sys/stand/boot/cmd.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/stand/boot/cmd.c b/sys/stand/boot/cmd.c
index c423016a880..66935bec89f 100644
--- a/sys/stand/boot/cmd.c
+++ b/sys/stand/boot/cmd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd.c,v 1.10 1997/04/21 20:03:30 mickey Exp $ */
+/* $OpenBSD: cmd.c,v 1.11 1997/04/21 20:20:25 mickey Exp $ */
/*
* Copyright (c) 1997 Michael Shalayeff
@@ -179,7 +179,11 @@ readline(buf, to)
for (i = to; i-- && !ischar(); )
#ifndef _TEST
- usleep(100000);
+ if ((to = usleep(100000))) {
+ printf ("usleep failed (%d)\n", to);
+ i = 1;
+ break;
+ }
#else
;
#endif