summary refs log tree commit diff
path: root/fq.c
diff options
context:
space:
mode:
Diffstat (limited to 'fq.c')
-rw-r--r--fq.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fq.c b/fq.c
index 34553da..7f6f5fd 100644
--- a/fq.c
+++ b/fq.c
@@ -53,6 +53,8 @@ main(int argc, char *argv[])
 	int ifd, wd;
 #endif
 
+	close(0);
+
 	if (argc < 2) {
 		/* little better than glob(3)... */
 		execl("/bin/sh", "sh", "-c", "fq ${NQDIR:+$NQDIR/},*", (char *) 0);