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:;
|
||||
}
|
||||
|
||||
close(0);
|
||||
close(1);
|
||||
setuid(uid);
|
||||
close(pipefds[1]);
|
||||
wait_for_child(pipefds[0]);
|
||||
|
Loading…
Reference in New Issue
Block a user