Set control_socket_open false when closing the socket.
authorDavin McCall <davmac@davmac.org>
Fri, 26 Oct 2018 09:25:07 +0000 (10:25 +0100)
committerDavin McCall <davmac@davmac.org>
Fri, 26 Oct 2018 09:25:07 +0000 (10:25 +0100)
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

index d6911b2557519fe3ffe14b92ad5bb608e7c2bc21..126f467ab04c46f48e35e07f9fc8d55aadab117d 100644 (file)
@@ -678,6 +678,8 @@ static void close_control_socket() noexcept
         
         // Unlink the socket:
         unlink(control_socket_path);
+
+        control_socket_open = false;
     }
 }