equal
deleted
inserted
replaced
66 # "pipe to self" trick to to accelerate runtime shutdown |
66 # "pipe to self" trick to to accelerate runtime shutdown |
67 # instead of waiting for arbitrary pyro timeout. |
67 # instead of waiting for arbitrary pyro timeout. |
68 others = [] |
68 others = [] |
69 if not sys.platform.startswith('win'): |
69 if not sys.platform.startswith('win'): |
70 self.piper, self.pipew = os.pipe() |
70 self.piper, self.pipew = os.pipe() |
71 others.append = self.piper |
71 others.append(self.piper) |
72 |
72 |
73 self.daemon.requestLoop(others=others, callback=lambda x: None) |
73 self.daemon.requestLoop(others=others, callback=lambda x: None) |
74 self.piper, self.pipew = None, None |
74 self.piper, self.pipew = None, None |
75 if hasattr(self, 'sock'): |
75 if hasattr(self, 'sock'): |
76 self.daemon.sock.close() |
76 self.daemon.sock.close() |