BIND 10 trac800, updated. 12186e267fb75a77027dc046f78db6ace99b8571 [trac800] fix a few typos
BIND 10 source code commits
bind10-changes at lists.isc.org
Tue Jul 26 14:00:20 UTC 2011
The branch, trac800 has been updated
via 12186e267fb75a77027dc046f78db6ace99b8571 (commit)
from c62810c526d75363ed4d668bbdb6b21a5a294a7b (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 12186e267fb75a77027dc046f78db6ace99b8571
Author: Jelte Jansen <jelte at isc.org>
Date: Tue Jul 26 15:00:33 2011 +0200
[trac800] fix a few typos
-----------------------------------------------------------------------
Summary of changes:
src/bin/bind10/bind10_messages.mes | 2 +-
src/bin/bind10/sockcreator.py | 12 +++++++-----
2 files changed, 8 insertions(+), 6 deletions(-)
-----------------------------------------------------------------------
diff --git a/src/bin/bind10/bind10_messages.mes b/src/bin/bind10/bind10_messages.mes
index a596147..bad1702 100644
--- a/src/bin/bind10/bind10_messages.mes
+++ b/src/bin/bind10/bind10_messages.mes
@@ -171,7 +171,7 @@ It probably crashed.
% BIND10_SOCKCREATOR_BAD_RESPONSE unknown response for socket request: %1
The boss requested a socket from the creator, but the answer is unknown. This
-looks like programmer error.
+looks like a programmer error.
% BIND10_SOCKET_ERROR error on %1 call in the creator: %2/%3
The socket creator failed to create the requested socket. It failed on the
diff --git a/src/bin/bind10/sockcreator.py b/src/bin/bind10/sockcreator.py
index baccc95..9fcc74e 100644
--- a/src/bin/bind10/sockcreator.py
+++ b/src/bin/bind10/sockcreator.py
@@ -23,7 +23,7 @@ from libutil_io_python import recv_fd
logger = isc.log.Logger("boss")
"""
-Module that comunicates with the priviledget socket creator (b10-sockcreator).
+Module that comunicates with the privileged socket creator (b10-sockcreator).
"""
class CreatorError(Exception):
@@ -54,7 +54,7 @@ class Parser:
In theory, anything here can throw a fatal CreatorError exception, but it
happens only in case something like the creator process crashes. Any other
- occations are mentioned explicitly.
+ occasions are mentioned explicitly.
"""
def __init__(self, creator_socket):
@@ -73,7 +73,9 @@ class Parser:
def terminate(self):
"""
Asks the creator process to terminate and waits for it to close the
- socket. Does not return anything.
+ socket. Does not return anything. Raises a CreatorError if there is
+ still data on the socket, if there is an error closing the socket,
+ or if the socket had already been closed.
"""
if self.__socket is None:
raise CreatorError('Terminated already', True)
@@ -160,7 +162,7 @@ class Parser:
"""
Keeps reading until length data is read or EOF or error happens.
- EOF is considered error as well and throws.
+ EOF is considered error as well and throws a CreatorError.
"""
result = b''
while len(result) < length:
@@ -175,7 +177,7 @@ class Parser:
class WrappedSocket:
"""
This class wraps a socket and adds a read_fd method, so it can be used
- for the Parser class conveniently. It simply copies all it's guts into
+ for the Parser class conveniently. It simply copies all its guts into
itself and implements the method.
"""
def __init__(self, socket):
More information about the bind10-changes
mailing list