srv: be nice, close the previously duped pipe filedescriptor
This commit is contained in:
parent
03cf6cae57
commit
9bb703e2cf
1 changed files with 1 additions and 0 deletions
|
@ -51,6 +51,7 @@ connectcmd(char *cmd)
|
|||
rfork(RFNOTEG);
|
||||
dup(p[0], 0);
|
||||
dup(p[0], 1);
|
||||
close(p[0]);
|
||||
close(p[1]);
|
||||
execl("/bin/rc", "rc", "-c", cmd, nil);
|
||||
fprint(2, "exec failed: %r\n");
|
||||
|
|
Loading…
Reference in a new issue