diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2023-09-12 12:11:06 +0000 |
---|---|---|
committer | Laurent Bercot <ska@appnovation.com> | 2023-09-12 12:11:06 +0000 |
commit | 78ba749bcb8e63cbe69b59831436d28562d27b88 (patch) | |
tree | 48aebac55eb58b941311591dd190d04dd3e29dfc /src/sysdeps | |
parent | 32544468e5db6a2635b6c0f9e261a288fe7179e9 (diff) | |
download | skalibs-78ba749bcb8e63cbe69b59831436d28562d27b88.tar.gz skalibs-78ba749bcb8e63cbe69b59831436d28562d27b88.tar.xz skalibs-78ba749bcb8e63cbe69b59831436d28562d27b88.zip |
Add waitid() sysdep, and fuck OpenBSD
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/sysdeps')
-rw-r--r-- | src/sysdeps/trywaitid.c | 12 |
1 files changed, 12 insertions, 0 deletions
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 <sys/types.h> +#include <signal.h> +#include <sys/wait.h> + +int main (void) +{ + siginfo_t info ; + waitid(P_PID, 0, &info, WEXITED) ; + return 0 ; +} |