X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fslocal.c;h=c8af725d8298da434f882c89bab3d450b627392d;hb=750e5220c8e53347a635600171fd443ff3a64583;hp=f03d48717a1fa22b33afc2bf0cb1a91b5ba7c103;hpb=612e67b21d1c9a6cc5db0e2903ddaeb5f2fbe2a0;p=mmh diff --git a/uip/slocal.c b/uip/slocal.c index f03d487..c8af725 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