diff --git a/test/zdtm/static/pidns02.c b/test/zdtm/static/pidns02.c index 80262f090..527b65c16 100644 --- a/test/zdtm/static/pidns02.c +++ b/test/zdtm/static/pidns02.c @@ -103,6 +103,7 @@ int main(int argc, char **argv) int i, status, ret = -1; pid_t pid[] = {-1, -1}; char *ns_pid, *tmp; + siginfo_t infop; test_init(argc, argv); futex = mmap(NULL, sizeof(*futex), PROT_WRITE | PROT_READ, MAP_SHARED | MAP_ANONYMOUS, -1, 0); @@ -153,7 +154,7 @@ int main(int argc, char **argv) fail("Can't kill"); goto out; } - ret = waitid(P_PID, pid[1], NULL, WEXITED|WNOWAIT); + ret = waitid(P_PID, pid[1], &infop, WEXITED|WNOWAIT); if (ret) { fail("Can't wait"); goto out; diff --git a/test/zdtm/static/pidns03.c b/test/zdtm/static/pidns03.c index 9d7d7635e..28802870c 100644 --- a/test/zdtm/static/pidns03.c +++ b/test/zdtm/static/pidns03.c @@ -93,6 +93,7 @@ static int child_fn(void) { long thread_retval; pthread_t thread; + siginfo_t infop; pid_t pid; int ret; @@ -114,7 +115,7 @@ static int child_fn(void) } else if (!pid) exit(0); - ret = waitid(P_PID, pid, NULL, WEXITED|WNOWAIT); + ret = waitid(P_PID, pid, &infop, WEXITED|WNOWAIT); if (ret) { fail("Can't wait"); goto err;