diff options
author | peter <peter@FreeBSD.org> | 1998-04-05 07:31:44 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1998-04-05 07:31:44 +0000 |
commit | 2a16d505617a4b4c4304138209485e4b615afa3c (patch) | |
tree | 6f1c7b840ceaa2923c388111c493c18301b613c9 /sys/kern/kern_time.c | |
parent | fdb7a2eb670a264e445c873f43be79bac7e39820 (diff) | |
download | FreeBSD-src-2a16d505617a4b4c4304138209485e4b615afa3c.zip FreeBSD-src-2a16d505617a4b4c4304138209485e4b615afa3c.tar.gz |
tsleep() returns EWOULDBLOCK if the timeout expired. Don't return this
to usermode, otherwise sleep(3) fails, cron doesn't work, etc etc etc.
Diffstat (limited to 'sys/kern/kern_time.c')
-rw-r--r-- | sys/kern/kern_time.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_time.c b/sys/kern/kern_time.c index c6407f6..abf1dfac 100644 --- a/sys/kern/kern_time.c +++ b/sys/kern/kern_time.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)kern_time.c 8.1 (Berkeley) 6/10/93 - * $Id: kern_time.c,v 1.45 1998/04/04 13:25:25 phk Exp $ + * $Id: kern_time.c,v 1.46 1998/04/04 18:46:13 phk Exp $ */ #include <sys/param.h> @@ -235,7 +235,7 @@ nanosleep1(p, rqt, rmt) *rmt = ts; timespecsub(rmt, &ts2); } - return(error); + return (error == EWOULDBLOCK ? 0 : error); } #ifndef _SYS_SYSPROTO_H_ |