X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fslocal.c;h=608ddf29f514468615a2fdf35350b891a98b08da;hb=5f08476e3bc5c134ce57d924b01d1c1fcacd53db;hp=f03d48717a1fa22b33afc2bf0cb1a91b5ba7c103;hpb=c490c51b3c0f8871b6953bd0c74551404f840a74;p=mmh diff --git a/uip/slocal.c b/uip/slocal.c index f03d487..608ddf2 100644 --- a/uip/slocal.c +++ b/uip/slocal.c @@ -1106,7 +1106,7 @@ static int usr_pipe(int fd, char *cmd, char *pgm, char **vec, int suppress) { pid_t child_id; - int bytes, seconds, status; + int bytes, seconds, status, n; struct stat st; char *path; @@ -1133,7 +1133,9 @@ usr_pipe(int fd, char *cmd, char *pgm, char **vec, int suppress) if (fd != 3) { dup2(fd, 3); } - closefds(4); + for (n=4; n