shutdown: remove close_nointr_nofail after make_stdio call

make_stdio itsselves closes the fd already
This commit is contained in:
Harald Hoyer 2011-07-19 12:16:30 +02:00 committed by Lennart Poettering
parent f782b8d031
commit 3b8a1f3fee

View File

@ -276,7 +276,6 @@ static int pivot_to_new_root(void) {
log_error("Failed to open /dev/console: %m");
else {
make_stdio(fd);
close_nointr_nofail(fd);
}
return 0;