refs #2563 log the logging-out user

pull/52/head
Natalia Serrano 2025-08-04 12:26:19 +02:00
parent 860fb61677
commit fc8b072860
2 changed files with 6 additions and 2 deletions

View File

@ -74,10 +74,12 @@ class OGAgentSvc(Daemon, CommonService):
while self.isAlive:
client_died=False
if os.path.exists ('/tmp/ogagentuser_died'):
with open ('/tmp/ogagentuser_died', 'rb') as fd:
u = fd.read()
os.unlink ('/tmp/ogagentuser_died')
client_died=True
if client_died:
self.notifyLogout (b'')
self.notifyLogout (u)
# In milliseconds, will break
self.doWait(1000)

View File

@ -108,10 +108,12 @@ class OGAgentSvc(win32serviceutil.ServiceFramework, CommonService):
while self.isAlive:
client_died=False
if os.path.exists ('/windows/temp/ogagentuser_died'):
with open ('/windows/temp/ogagentuser_died', 'rb') as fd:
u = fd.read()
os.unlink ('/windows/temp/ogagentuser_died')
client_died=True
if client_died:
self.notifyLogout (b'')
self.notifyLogout (u)
# Pumps & processes any waiting messages
pythoncom.PumpWaitingMessages()