Er, don't restart a timeout version.
This commit is contained in:
parent
1a30511c61
commit
11b1023b7d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=177849
@ -2481,7 +2481,8 @@ do_rw_rdlock2(struct thread *td, void *obj, long val, struct timespec *timeout)
|
|||||||
timespecsub(&ts3, &ts2);
|
timespecsub(&ts3, &ts2);
|
||||||
TIMESPEC_TO_TIMEVAL(&tv, &ts3);
|
TIMESPEC_TO_TIMEVAL(&tv, &ts3);
|
||||||
}
|
}
|
||||||
|
if (error == ERESTART)
|
||||||
|
error = EINTR;
|
||||||
return (error);
|
return (error);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2597,7 +2598,8 @@ do_rw_wrlock2(struct thread *td, void *obj, struct timespec *timeout)
|
|||||||
timespecsub(&ts3, &ts2);
|
timespecsub(&ts3, &ts2);
|
||||||
TIMESPEC_TO_TIMEVAL(&tv, &ts3);
|
TIMESPEC_TO_TIMEVAL(&tv, &ts3);
|
||||||
}
|
}
|
||||||
|
if (error == ERESTART)
|
||||||
|
error = EINTR;
|
||||||
return (error);
|
return (error);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user