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