summaryrefslogtreecommitdiffstats
path: root/pciusb.c
diff options
context:
space:
mode:
Diffstat (limited to 'pciusb.c')
-rw-r--r--pciusb.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pciusb.c b/pciusb.c
index 18abdc0..37f3edb 100644
--- a/pciusb.c
+++ b/pciusb.c
@@ -44,6 +44,8 @@ static fh fh_open(char *fname) {
cmd[ip++] = NULL;
dup2(fdno[1], STDOUT_FILENO);
+ close(fdno[0]);
+ close(fdno[1]);
execvp(cmd[0], cmd);
perror("pciusb"); exit(2);
}