From 523a86eaa3826c74482ff1c3a7dac7151b75a3dc Mon Sep 17 00:00:00 2001 From: Davin McCall Date: Fri, 26 Oct 2018 10:25:07 +0100 Subject: [PATCH] Set control_socket_open false when closing the socket. If we booted to single-user mode, we close the socket once it exits, so we need to open it again. Leaving control_socket_open true means that we don't do that, so set it false. --- src/dinit.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/dinit.cc b/src/dinit.cc index d6911b2..126f467 100644 --- a/src/dinit.cc +++ b/src/dinit.cc @@ -678,6 +678,8 @@ static void close_control_socket() noexcept // Unlink the socket: unlink(control_socket_path); + + control_socket_open = false; } } -- 2.25.1