From: David van Moolenbroek Date: Tue, 23 Sep 2014 11:49:47 +0000 (+0000) Subject: test56: fix race condition X-Git-Url: http://zhaoyanbai.com/repos/?a=commitdiff_plain;h=refs%2Fchanges%2F49%2F2849%2F1;p=minix.git test56: fix race condition Change-Id: I42bfe2b150e92f760794b4a03e62859c8bd7a992 --- diff --git a/minix/tests/test56.c b/minix/tests/test56.c index da3efaff0..b3295ce60 100644 --- a/minix/tests/test56.c +++ b/minix/tests/test56.c @@ -3236,6 +3236,8 @@ test_intr(void) /* No partial transfers should be happening. */ check_select(client_sd, 0 /*read*/, 1 /*write*/, 0 /*block*/); + sleep(1); + fcntl(client_sd, F_SETFL, fcntl(client_sd, F_GETFL) | O_NONBLOCK);