From bab91133ad74e4dc23e792ddb8c1a22f795e5fc9 Mon Sep 17 00:00:00 2001 From: Michael Haubenwallner Date: Tue, 24 May 2016 12:54:38 +0200 Subject: [PATCH] __multijob_init: work with Cygwin FIFO, #583962 --- bin/helper-functions.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/helper-functions.sh b/bin/helper-functions.sh index c096aed..4c3f0a5 100644 --- a/bin/helper-functions.sh +++ b/bin/helper-functions.sh @@ -21,11 +21,12 @@ __multijob_init() { # Setup a pipe for children to write their pids to when they finish. # We have to allocate two fd's because POSIX has undefined behavior # when you open a FIFO for simultaneous read/write. #487056 + # And Cygwin supports just one read/write fd at once. #583962 local pipe=$(mktemp -t multijob.XXXXXX) rm -f "${pipe}" mkfifo -m 600 "${pipe}" - __redirect_alloc_fd mj_write_fd "${pipe}" __redirect_alloc_fd mj_read_fd "${pipe}" + __redirect_alloc_fd mj_write_fd "${pipe}" '>' rm -f "${pipe}" # See how many children we can fork based on the user's settings. -- 2.7.3