mirror of
https://github.com/systemd/systemd.git
synced 2024-12-28 11:33:31 +08:00
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 New Issue
Block a user