Skip to content
Snippets Groups Projects
Commit 2507bc47 authored by Craig Small's avatar Craig Small
Browse files

build-sys: Fix pidfd_open checking


The previous build setup would check for pidfd_open using
AC_CHECK_FUNC and would be incorrectly reported as true.

Also, if pidfd_open() and __NR_pidfd_open were not present,
pidwait would silently not be built.

So, changes:
 compile a small programin using pidfd_open to test it properly
 conditionally try to find NR_pidfd_open if the function fails
 complain if neither are present
 have --disable-pidwait configure option so you are explicit in
 not wanting and knowing you wont get pidwait

References:
 #352
 commit d9c3e367
 commit 17f94796

Signed-off-by: Craig Small's avatarCraig Small <csmall@dropbear.xyz>
parent 2cded082
No related branches found
No related tags found
No related merge requests found
Pipeline #1474870773 passed
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment