From b42e1a56a48282be171cc5c094a8b0a3b55da453 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Sat, 9 May 2015 15:41:47 +0000 Subject: - Fix pipeline when stdin or stdout is closed - rc for 2.1.2.1 --- src/execline/pipeline.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/execline/pipeline.c b/src/execline/pipeline.c index 42a230b..ca5ef0f 100644 --- a/src/execline/pipeline.c +++ b/src/execline/pipeline.c @@ -66,6 +66,7 @@ int main (int argc, char const **argv, char const *const *envp) if (!pid) strerr_diefu2sys(111, "spawn ", argv[0]) ; } if (fd_move(w, fd) < 0) strerr_diefu1sys(111, "fd_move") ; + if (w == fd) uncoe(fd) ; { #ifdef EXECLINE_OLD_VARNAMES char fmt[UINT64_FMT * 2 + 10] = "!=" ; -- cgit v1.3.1