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:
Jérôme Duval 2021-12-18 21:19:23 +01:00 committed by waddlesplash
parent 65ed50c713
commit 50a4c18678

View File

@ -1268,6 +1268,7 @@ _user_xsi_semop(int semaphoreID, struct sembuf *ops, size_t numOps)
XsiSemaphore *semaphore = semaphoreSet->Semaphore(semaphoreNumber);
semaphore->SetPid(getpid());
}
semaphoreSet->SetLastSemopTime();
}
return result;
}