test56: fix race condition

Change-Id: I42bfe2b150e92f760794b4a03e62859c8bd7a992
This commit is contained in:
David van Moolenbroek 2014-09-23 11:49:47 +00:00
parent cbc8a0df90
commit e5808135dd

View file

@ -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);