[systemd-devel] [PATCH] src/shutdown.c: remove close_nointr_nofail after make_stdio call

harald at redhat.com harald at redhat.com
Tue Jul 19 03:16:30 PDT 2011


From: Harald Hoyer <harald at redhat.com>

make_stdio itsselves closes the fd already
---
 src/shutdown.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/src/shutdown.c b/src/shutdown.c
index c16871d..0905ef5 100644
--- a/src/shutdown.c
+++ b/src/shutdown.c
@@ -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;
-- 
1.7.6



More information about the systemd-devel mailing list