Date: Tue, 23 Feb 2021 07:34:54 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 173724] [kernel] SYSV semaphore adjustment incorrect for SETVAL for array with 2 or more semaphores Message-ID: <bug-173724-227-0wTjyQ73yv@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-173724-227@https.bugs.freebsd.org/bugzilla/>
index | next in thread | previous in thread | raw e-mail
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=173724 --- Comment #3 from Anton Lavrentiev <lavr@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.home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-173724-227-0wTjyQ73yv>
