[Bug 173724] [kernel] SYSV semaphore adjustment incorrect for SETVAL for array with 2 or more semaphores
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Tue Feb 23 07:34:54 UTC 2021
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=173724
--- Comment #3 from Anton Lavrentiev <lavr at ncbi.nlm.nih.gov> ---
The bug was fixed in Cygwin (long time ago!) by moving the following comparison
with -1 for inequality _inside_ this "if" in the semundo_clear() function. In
the current FreeBSD source code it's still outside the if:
if (semnum == -1 || sunptr->un_num == semnum) {
...
+ if (semnum != -1)
+ break;
}
- if (semnum != -1)
- break;
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list