]> Zhao Yanbai Git Server - minix.git/commit
usr.bin/make: -j fix
authorLionel Sambuc <lionel@minix3.org>
Fri, 25 Apr 2014 14:06:33 +0000 (16:06 +0200)
committerLionel Sambuc <lionel@minix3.org>
Mon, 28 Jul 2014 15:05:15 +0000 (17:05 +0200)
commit7d98eee859c9c87a282db2d34c657ede94f72582
treeb3ec6c96f577bd87ecbde1c16164a14e52ba91e0
parentac9fa699bdc20fec397b5f20eb9d2297a145d5ee
usr.bin/make: -j fix

The job option enable the usage of pipes to communicate with sub-makes.

On MINIX, it seems that there is possibility of receiving an EAGAIN on
such reads, even when it had previously been tested for POLLIN using
poll().

This patch is a workaround, by wrapping the read operation within a
do {} while(errno == EAGAIN && ...) loop.

Change-Id: Ia184c4d600efe7218d197820df87761604120862
servers/vfs/pipe.c
usr.bin/make/job.c