Skip to content

Commit

Permalink
test-ovn: Use literal -1 instead of WAIT_ANY.
Browse files Browse the repository at this point in the history
POSIX does not specify WAIT_ANY and at least MUSL libc does not define it.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
  • Loading branch information
kraj authored and blp committed Mar 20, 2017
1 parent 3c70f38 commit 0c36c1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test-ovn.c
Expand Up @@ -983,7 +983,7 @@ wait_pid(pid_t *pids, int *n)
int status;
pid_t pid;

pid = waitpid(WAIT_ANY, &status, 0);
pid = waitpid(-1, &status, 0);
if (pid < 0) {
ovs_fatal(errno, "waitpid failed");
} else if (WIFEXITED(status)) {
Expand Down

0 comments on commit 0c36c1e

Please sign in to comment.