summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2011-07-19 12:16:30 +0200
committerLennart Poettering <lennart@poettering.net>2011-07-22 04:31:21 +0200
commit3b8a1f3fee7bf83af5bbae541166508cf172b67c (patch)
tree9207fbce036b153afe3a7e9e655db3caaf5a1a66
parentf782b8d031fcf6ec6b6ea4a1e0c956e44a7c7298 (diff)
shutdown: remove close_nointr_nofail after make_stdio call
make_stdio itsselves closes the fd already
-rw-r--r--src/shutdown.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/shutdown.c b/src/shutdown.c
index c16871dde4..0905ef5b3a 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;