mirror of
https://github.com/wolfcw/libfaketime.git
synced 2026-05-17 00:26:16 +03:00
honor dont_fake_monotonic in experimental sem_clockwait() (addresses #390)
This commit is contained in:
@@ -1831,6 +1831,12 @@ int sem_clockwait(sem_t *sem, clockid_t clockid, const struct timespec *abstime)
|
||||
int result;
|
||||
struct timespec real_abstime, *real_abstime_pt;
|
||||
|
||||
if ((!fake_monotonic_clock) && (clockid == CLOCK_MONOTONIC))
|
||||
{
|
||||
DONT_FAKE_TIME(result = (*real_sem_clockwait)(sem, clockid, abstime));
|
||||
return result;
|
||||
}
|
||||
|
||||
/* sanity check */
|
||||
if (abstime == NULL)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user