apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r1778149 - /apr/apr/trunk/test/testpoll.c
Date Tue, 10 Jan 2017 16:01:49 GMT
Author: jim
Date: Tue Jan 10 16:01:49 2017
New Revision: 1778149

URL: http://svn.apache.org/viewvc?rev=1778149&view=rev
Log:
race condition

Modified:
    apr/apr/trunk/test/testpoll.c

Modified: apr/apr/trunk/test/testpoll.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/test/testpoll.c?rev=1778149&r1=1778148&r2=1778149&view=diff
==============================================================================
--- apr/apr/trunk/test/testpoll.c (original)
+++ apr/apr/trunk/test/testpoll.c Tue Jan 10 16:01:49 2017
@@ -807,7 +807,7 @@ static void pollset_wakeup(abts_case *tc
     rv = apr_pollset_add(pollset, &socket_pollfd);
     ABTS_INT_EQUAL(tc, APR_SUCCESS, rv);
 
-    send_msg(s, sa, 0, tc);
+    send_msg(s, sa, 0, tc); apr_sleep(1000);
 
     rv = apr_pollset_wakeup(pollset);
     ABTS_INT_EQUAL(tc, APR_SUCCESS, rv);



Mime
View raw message