vm/filecopy: close unused fds in parent process
This commit is contained in:
parent
bff7ee6f25
commit
4ca3961684
@ -81,6 +81,8 @@ int main(int argc, char ** argv)
|
|||||||
default:;
|
default:;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
close(0);
|
||||||
|
close(1);
|
||||||
setuid(uid);
|
setuid(uid);
|
||||||
close(pipefds[1]);
|
close(pipefds[1]);
|
||||||
wait_for_child(pipefds[0]);
|
wait_for_child(pipefds[0]);
|
||||||
|
Loading…
Reference in New Issue
Block a user