projects
/
oweals
/
dinit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
035e35d
)
Set control_socket_open false when closing the socket.
author
Davin McCall
<davmac@davmac.org>
Fri, 26 Oct 2018 09:25:07 +0000
(10:25 +0100)
committer
Davin 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
patch
|
blob
|
history
diff --git
a/src/dinit.cc
b/src/dinit.cc
index d6911b2557519fe3ffe14b92ad5bb608e7c2bc21..126f467ab04c46f48e35e07f9fc8d55aadab117d 100644
(file)
--- 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;
}
}