Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions manager/manager/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -850,7 +850,13 @@ def on_pause(self, msg):
if self.application_process is not None:
try:
proc = psutil.Process(self.application_process.pid)
proc.suspend()
children = proc.children(recursive=True)
children.append(proc)
for p in children:
try:
p.suspend()
except psutil.NoSuchProcess:
pass
self.pause_sim()
except Exception as e:
LogManager.logger.exception("Error suspending process")
Expand All @@ -871,7 +877,13 @@ def on_resume(self, msg):
if self.application_process is not None:
try:
proc = psutil.Process(self.application_process.pid)
proc.resume()
children = proc.children(recursive=True)
children.append(proc)
for p in children:
try:
p.resume()
except psutil.NoSuchProcess:
pass
self.unpause_sim()
except Exception as e:
LogManager.logger.exception("Error suspending process")
Expand Down
Loading