This is motiviated by sparse not handling the transparent union in wait() properly, but using waitpid is generally a better idea since we know what is supposed to be waited for here. Signed-off-by: Jason Gunthorpe <jgunthorpe@xxxxxxxxxxxxxxxxxxxx> --- librdmacm/examples/rstream.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/librdmacm/examples/rstream.c b/librdmacm/examples/rstream.c index 70b714613e91af..7523269cbd5cda 100644 --- a/librdmacm/examples/rstream.c +++ b/librdmacm/examples/rstream.c @@ -527,7 +527,7 @@ static int run(void) run_test(); } if (fork_pid) - wait(NULL); + waitpid(fork_pid, NULL, 0); else rs_shutdown(rs, SHUT_RDWR); rs_close(rs); @@ -555,7 +555,7 @@ static int run(void) } if (fork_pid) - wait(NULL); + waitpid(fork_pid, NULL, 0); else rs_shutdown(rs, SHUT_RDWR); rs_close(rs); -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html