Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
Kea
Commits
99033305
Commit
99033305
authored
Dec 06, 2011
by
Michal 'vorner' Vaner
Browse files
[1429] Constants instead of magic strings
parent
b7bbe25f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/bin/bind10/bind10_src.py.in
View file @
99033305
...
...
@@ -83,6 +83,10 @@ logger = isc.log.Logger("boss")
DBG_PROCESS = logger.DBGLVL_TRACE_BASIC
DBG_COMMANDS = logger.DBGLVL_TRACE_DETAIL
# Messages sent over the unix domain socket to indicate if it is followed by a real socket
CREATOR_SOCKET_OK = "1\n"
CREATOR_SOCKET_UNAVAILABLE = "0\n"
# Assign this process some longer name
isc.util.process.rename(sys.argv[0])
...
...
@@ -869,11 +873,11 @@ class BoB:
"""
try:
fd = self._socket_cache.get_socket(token, unix_socket.fileno())
unix_socket.sendall(
"1\n"
)
unix_socket.sendall(
CREATOR_SOCKET_OK
)
libutil_io_python.send_fd(unix_socket.fileno(), fd)
except Exception as e:
logger.error(BIND10_NO_SOCKET, token, e)
unix_socket.sendall(
"0\n"
)
unix_socket.sendall(
CREATOR_SOCKET_UNAVAILABLE
)
def socket_consumer_dead(self, unix_socket):
"""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment