summaryrefslogtreecommitdiff
path: root/test/testsock.c
diff options
context:
space:
mode:
authorrbb <rbb@13f79535-47bb-0310-9956-ffa450edef68>2000-12-03 01:52:34 +0000
committerrbb <rbb@13f79535-47bb-0310-9956-ffa450edef68>2000-12-03 01:52:34 +0000
commitb4c292817ec2c8976a1693b022eeadde84586573 (patch)
tree1a5ae106f9e47a36bab68e7affd9adbc33db0599 /test/testsock.c
parent8e6ceb4e322ed48ce16e1028139de781033a4a3d (diff)
downloadlibapr-b4c292817ec2c8976a1693b022eeadde84586573.tar.gz
Ensure that the server process has started before we try to run the client.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@60852 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/testsock.c')
-rw-r--r--test/testsock.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/testsock.c b/test/testsock.c
index 34c06df9d..d0d62dd6d 100644
--- a/test/testsock.c
+++ b/test/testsock.c
@@ -108,6 +108,8 @@ int main(int argc, char *argv[])
args[1] = NULL;
s1 = apr_create_process(&proc1, "./server", args, NULL, attr1, context);
+ /* Sleep for 30 seconds to ensure the server is setup before we begin */
+ apr_sleep(10000000);
args[0] = apr_pstrdup(context, "client");
s2 = apr_create_process(&proc2, "./client", args, NULL, attr2, context);