Re: Regression tests fail on OpenBSD due to low semmns value
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Thomas Munro <thomas.munro@gmail.com>
Cc: Alexander Lakhin <exclusion@gmail.com>,
pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2024-12-17T04:29:01Z
Lists: pgsql-hackers
Thomas Munro <thomas.munro@gmail.com> writes: > Whenever I run into this, or my Mac requires manual ipcrm to clean up > leaked SysV kernel junk, I rebase my patch for sema_kind = 'futex'. > Here it goes. It could be updated to support NetBSD I believe, but I > didn't try as its futex stuff came out later. FWIW, I looked at a nearby NetBSD 10.0 machine. It has /usr/include/sys/futex.h, which includes this enticing comment: /* * Definitions for the __futex(2) synchronization primitive. * * These definitions are intended to be ABI-compatible with the * Linux futex(2) system call. */ However, the complete lack of any user-level documentation makes me misdoubt the extent of their commitment to this :-( I have the same concern about depending on undocumented macOS APIs. Other than that, getting off of SysV semaphores would be a nice thing to do. regards, tom lane
Commits
-
Try to avoid semaphore-related test failures on NetBSD/OpenBSD.
- a46311ed7214 17.3 landed
- 38da053463be 18.0 landed