add more file closing to negate pipe(...) error

This commit is contained in:
randomuser 2022-01-07 02:36:48 -06:00
parent 0dda175094
commit dc2969a5f8
1 changed files with 3 additions and 0 deletions

View File

@ -128,6 +128,7 @@ char *execstdout(char *file, char *arg[], char *env[]) {
return buf;
}
close(pfds[0]);
close(pfds[1]);
}
}
@ -239,6 +240,8 @@ module *parse_file(char *file) {
}
}
fclose(fp);
return head;
}