runtime/PyroServer.py
changeset 3347 f31f062703a2
parent 3345 574782d2be1d
child 3750 f62625418bff
equal deleted inserted replaced
3346:3b920d1fe81b 3347:f31f062703a2
    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()