shutdown: remove close_nointr_nofail after make_stdio call
make_stdio itsselves closes the fd already
This commit is contained in:
parent
f782b8d031
commit
3b8a1f3fee
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue