Skip to content
Snippets Groups Projects
Commit 1bd0a4e0 authored by Anders Blomdell's avatar Anders Blomdell
Browse files

Trying to find buffering deadlock

parent c58c5b5b
No related branches found
No related tags found
No related merge requests found
...@@ -63,6 +63,7 @@ class Server: ...@@ -63,6 +63,7 @@ class Server:
config_HASH_socket,_ = server.accept() config_HASH_socket,_ = server.accept()
self.log.DEBUG('config+HASH', config_HASH_socket) self.log.DEBUG('config+HASH', config_HASH_socket)
c = config_HASH_socket.makefile('r').read() c = config_HASH_socket.makefile('r').read()
config_HASH_socket.shutdown(socket.SHUT_RD)
if config.parse(c).asList() != self.config.asList(): if config.parse(c).asList() != self.config.asList():
raise Exception('Configuration differs') raise Exception('Configuration differs')
with self.mutex: with self.mutex:
...@@ -78,8 +79,8 @@ class Server: ...@@ -78,8 +79,8 @@ class Server:
target=self.run_tar, target=self.run_tar,
args=(tar_socket,)) args=(tar_socket,))
self.thread_tar.start() self.thread_tar.start()
pass
cond_unlink(self.socket_path, self.log) pass
def pending(self): def pending(self):
with self.mutex: with self.mutex:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment