mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-17 10:26:15 +00:00
tsleep() returns EWOULDBLOCK if the timeout expired. Don't return this
to usermode, otherwise sleep(3) fails, cron doesn't work, etc etc etc.
This commit is contained in:
parent
48e88c192e
commit
2257b488b9
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=35040
@ -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_
|
||||
|
Loading…
Reference in New Issue
Block a user