kernel/xsi_semaphore: set otime when semop() succeeds
used by PR_OpenSemaphore in NSPR to check the creator inited. Change-Id: I626c6ab0d50896c94224718ca4fa0788f74ae27a Reviewed-on: https://review.haiku-os.org/c/haiku/+/4824 Reviewed-by: waddlesplash <waddlesplash@gmail.com>
This commit is contained in:
parent
65ed50c713
commit
50a4c18678
@ -1268,6 +1268,7 @@ _user_xsi_semop(int semaphoreID, struct sembuf *ops, size_t numOps)
|
|||||||
XsiSemaphore *semaphore = semaphoreSet->Semaphore(semaphoreNumber);
|
XsiSemaphore *semaphore = semaphoreSet->Semaphore(semaphoreNumber);
|
||||||
semaphore->SetPid(getpid());
|
semaphore->SetPid(getpid());
|
||||||
}
|
}
|
||||||
|
semaphoreSet->SetLastSemopTime();
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user