summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/main.c b/main.c
index 8715881..816243f 100644
--- a/main.c
+++ b/main.c
@@ -790,6 +790,7 @@ redirect(const char *line, const char *makefile)
fputs(buf, fdout);
}
}
+ fclose(fdin);
fflush(fdout);
#ifndef HAVE_FCHMOD
chmod(makefile, st.st_mode);