From 38f667789230726cd67114fa81e9dc87ff6f6518 Mon Sep 17 00:00:00 2001 From: Gerhard Rieger Date: Sat, 1 Nov 2008 18:58:31 +0100 Subject: [PATCH] system,pipes did not pass EOF to sub process --- xio-progcall.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xio-progcall.c b/xio-progcall.c index d0c31db..9342cf5 100644 --- a/xio-progcall.c +++ b/xio-progcall.c @@ -1157,6 +1157,9 @@ int _xioopen_foxec_end(int xioflags, /* XIO_RDONLY etc. */ a graceful solution via temporary descriptors */ int tmpi, tmpo; + Close(rdpip[0]); + Close(wrpip[1]); + if (fdi == rdpip[1]) { /* a conflict here */ if ((tmpi = Dup(wrpip[0])) < 0) { Error2("dup(%d): %s", wrpip[0], strerror(errno));