diff options
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 ; +} |