You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by rb...@locus.apache.org on 2000/12/03 02:52:35 UTC

cvs commit: apr/test testsock.c

rbb         00/12/02 17:52:35

  Modified:    test     testsock.c
  Log:
  Ensure that the server process has started before we try to run the client.
  
  Revision  Changes    Path
  1.13      +2 -0      apr/test/testsock.c
  
  Index: testsock.c
  ===================================================================
  RCS file: /home/cvs/apr/test/testsock.c,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- testsock.c	2000/11/29 00:25:23	1.12
  +++ testsock.c	2000/12/03 01:52:34	1.13
  @@ -108,6 +108,8 @@
       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);