From 78ba749bcb8e63cbe69b59831436d28562d27b88 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Tue, 12 Sep 2023 12:11:06 +0000 Subject: Add waitid() sysdep, and fuck OpenBSD Signed-off-by: Laurent Bercot --- src/sysdeps/trywaitid.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/sysdeps/trywaitid.c (limited to 'src/sysdeps') diff --git a/src/sysdeps/trywaitid.c b/src/sysdeps/trywaitid.c new file mode 100644 index 0000000..76ceeea --- /dev/null +++ b/src/sysdeps/trywaitid.c @@ -0,0 +1,12 @@ +/* ISC license. */ + +#include +#include +#include + +int main (void) +{ + siginfo_t info ; + waitid(P_PID, 0, &info, WEXITED) ; + return 0 ; +} -- cgit 1.4.1