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/> References: <bug-173724-227@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D173724 --- Comment #3 from Anton Lavrentiev <lavr@ncbi.nlm.nih.gov> --- The bug was fixed in Cygwin (long time ago!) by moving the following compar= ison 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 =3D=3D -1 || sunptr->un_num =3D= =3D semnum) { ... + if (semnum !=3D -1) + break; } - if (semnum !=3D -1) - break; --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-173724-227-0wTjyQ73yv>