diff options
author | gstein <gstein@13f79535-47bb-0310-9956-ffa450edef68> | 2001-09-20 09:03:25 +0000 |
---|---|---|
committer | gstein <gstein@13f79535-47bb-0310-9956-ffa450edef68> | 2001-09-20 09:03:25 +0000 |
commit | c92333d75221c816701f745e922ab3bc4c73f404 (patch) | |
tree | 2c7022f9002222fb86acdbfafa43d4e6505a7109 /test/testsock.c | |
parent | 8dbc1a060636ffbd82ba5b2a881662c4e79de1cf (diff) | |
download | libapr-c92333d75221c816701f745e922ab3bc4c73f404.tar.gz |
Add an extra parameter to all apr_proc_wait() calls for the new "exitcode"
parameter. Pass NULL because we aren't interested in the value.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62351 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/testsock.c')
-rw-r--r-- | test/testsock.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/test/testsock.c b/test/testsock.c index 38237a564..2e8059268 100644 --- a/test/testsock.c +++ b/test/testsock.c @@ -96,18 +96,18 @@ static int run_basic_test(apr_pool_t *context) exit(-1); } - while ((s1 = apr_proc_wait(&proc1, APR_NOWAIT)) == APR_CHILD_NOTDONE && - (s2 = apr_proc_wait(&proc2, APR_NOWAIT)) == APR_CHILD_NOTDONE) { + while ((s1 = apr_proc_wait(&proc1, NULL, APR_NOWAIT)) == APR_CHILD_NOTDONE && + (s2 = apr_proc_wait(&proc2, NULL, APR_NOWAIT)) == APR_CHILD_NOTDONE) { continue; } if (s1 == APR_SUCCESS) { apr_proc_kill(&proc2, SIGTERM); - while (apr_proc_wait(&proc2, APR_WAIT) == APR_CHILD_NOTDONE); + while (apr_proc_wait(&proc2, NULL, APR_WAIT) == APR_CHILD_NOTDONE); } else { apr_proc_kill(&proc1, SIGTERM); - while (apr_proc_wait(&proc1, APR_WAIT) == APR_CHILD_NOTDONE); + while (apr_proc_wait(&proc1, NULL, APR_WAIT) == APR_CHILD_NOTDONE); } fprintf(stdout, "Network test completed.\n"); @@ -163,18 +163,18 @@ static int run_sendfile(apr_pool_t *context, int number) exit(-1); } - while ((s1 = apr_proc_wait(&proc1, APR_NOWAIT)) == APR_CHILD_NOTDONE && - (s2 = apr_proc_wait(&proc2, APR_NOWAIT)) == APR_CHILD_NOTDONE) { + while ((s1 = apr_proc_wait(&proc1, NULL, APR_NOWAIT)) == APR_CHILD_NOTDONE && + (s2 = apr_proc_wait(&proc2, NULL, APR_NOWAIT)) == APR_CHILD_NOTDONE) { continue; } if (s1 == APR_SUCCESS) { apr_proc_kill(&proc2, SIGTERM); - while (apr_proc_wait(&proc2, APR_WAIT) == APR_CHILD_NOTDONE); + while (apr_proc_wait(&proc2, NULL, APR_WAIT) == APR_CHILD_NOTDONE); } else { apr_proc_kill(&proc1, SIGTERM); - while (apr_proc_wait(&proc1, APR_WAIT) == APR_CHILD_NOTDONE); + while (apr_proc_wait(&proc1, NULL, APR_WAIT) == APR_CHILD_NOTDONE); } fprintf(stdout, "Network test completed.\n"); |