Further work on controlling the portal with AMP

This commit is contained in:
Griatch 2018-01-14 00:30:13 +01:00
parent c46d181566
commit ff887a07ab
5 changed files with 113 additions and 58 deletions

View file

@ -105,6 +105,8 @@ class Portal(object):
self.amp_protocol = None # set by amp factory
self.sessions = PORTAL_SESSIONS
self.sessions.portal = self
self.process_id = os.getpid()
self.server_process_id = None
# set a callback if the server is killed abruptly,
# by Ctrl-C, reboot etc.