vm/filecopy: close unused fds in parent process

This commit is contained in:
Marek Marczykowski 2012-08-25 01:19:47 +02:00
parent bff7ee6f25
commit 4ca3961684

View File

@ -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]);