From e5808135ddd9714cbc80097c046ef491994571e2 Mon Sep 17 00:00:00 2001 From: David van Moolenbroek Date: Tue, 23 Sep 2014 11:49:47 +0000 Subject: [PATCH] test56: fix race condition Change-Id: I42bfe2b150e92f760794b4a03e62859c8bd7a992 --- minix/tests/test56.c | 2 ++ 1 file changed, 2 insertions(+) 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); -- 2.44.0