Er, don't restart a timeout version.

This commit is contained in:
David Xu 2008-04-02 04:26:59 +00:00
parent 1a30511c61
commit 11b1023b7d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=177849

View File

@ -2481,7 +2481,8 @@ do_rw_rdlock2(struct thread *td, void *obj, long val, struct timespec *timeout)
timespecsub(&ts3, &ts2);
TIMESPEC_TO_TIMEVAL(&tv, &ts3);
}
if (error == ERESTART)
error = EINTR;
return (error);
}
@ -2597,7 +2598,8 @@ do_rw_wrlock2(struct thread *td, void *obj, struct timespec *timeout)
timespecsub(&ts3, &ts2);
TIMESPEC_TO_TIMEVAL(&tv, &ts3);
}
if (error == ERESTART)
error = EINTR;
return (error);
}