diff options
author | Jeremy Drake <cygwin@jdrake.com> | 2025-08-18 15:59:54 -0700 |
---|---|---|
committer | Jeremy Drake <cygwin@jdrake.com> | 2025-08-18 17:14:18 -0700 |
commit | 2934367c3d8096da72cac29e3404333fc2d3152f (patch) | |
tree | 626065f17380c73da1626261bc94e11d760205e6 /winsup/testsuite/winsup.api/posix_spawn/signals.c | |
parent | fb0a539efa0278fd18915fc072bc30b4851a9b75 (diff) | |
download | newlib-master.zip newlib-master.tar.gz newlib-master.tar.bz2 |
The commit adding OFD locks changed from comparing just the F_POSIX and
F_LOCK flags to comparing the entire flags value in order to make sure
the locks are of the same type. However, the F_WAIT flag may or may not
be set, and result in that comparison not matching. Mask the F_WAIT
flag when attempting to compare the types of the locks.
This fixes the "many_locks" stc.
Signed-off-by: Jeremy Drake <cygwin@jdrake.com>
Fixes: a66ed519884d ("Cygwin: fcntl: implement Open File Description (OFD) locks")
Diffstat (limited to 'winsup/testsuite/winsup.api/posix_spawn/signals.c')
0 files changed, 0 insertions, 0 deletions