summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2017-03-20 12:13:30 -0700
committerBen Pfaff <blp@ovn.org>2017-03-20 12:31:48 -0700
commit0c36c1e53520e2b7c1e384db5e262ddfe2ca58c4 (patch)
tree18d3d361669cfe37d36a6b69f5732e6991dc94a9 /tests
parent3c70f38cf15c668125933061dc4c8ad12d52ac3d (diff)
downloadopenvswitch-0c36c1e53520e2b7c1e384db5e262ddfe2ca58c4.tar.gz
test-ovn: Use literal -1 instead of WAIT_ANY.
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>
Diffstat (limited to 'tests')
-rw-r--r--tests/test-ovn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test-ovn.c b/tests/test-ovn.c
index ea7c45ac8..2551ad8be 100644
--- a/tests/test-ovn.c
+++ b/tests/test-ovn.c
@@ -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)) {