Verify owned TTY cleanup before reporting stop
This commit is contained in:
1 parent
ba17412c60
commit
f6b14c5210
8 files changed
+759
-34
No files matched your search
@@ -212,7 +212,10 @@ class RealTerminalMixin:
|
||||
|
||||
def shutdown(self):
|
||||
with self._lock:
|
||||
errors=[]
|
||||
for sid in list(self._real):
|
||||
try:self.abort(sid)
|
||||
except (TerminalDenied,SudoControlError):pass
|
||||
except (TerminalDenied,SudoControlError) as error:
|
||||
errors.append({'session_id':sid,'error':str(error)})
|
||||
super().shutdown()
|
||||
return {'cleanup_verified':not self._real,'errors':errors}
|
||||
Reference in new issue
Block a user