File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -850,7 +850,13 @@ def on_pause(self, msg):
850850 if self .application_process is not None :
851851 try :
852852 proc = psutil .Process (self .application_process .pid )
853- proc .suspend ()
853+ children = proc .children (recursive = True )
854+ children .append (proc )
855+ for p in children :
856+ try :
857+ p .suspend ()
858+ except psutil .NoSuchProcess :
859+ pass
854860 self .pause_sim ()
855861 except Exception as e :
856862 LogManager .logger .exception ("Error suspending process" )
@@ -871,7 +877,13 @@ def on_resume(self, msg):
871877 if self .application_process is not None :
872878 try :
873879 proc = psutil .Process (self .application_process .pid )
874- proc .resume ()
880+ children = proc .children (recursive = True )
881+ children .append (proc )
882+ for p in children :
883+ try :
884+ p .resume ()
885+ except psutil .NoSuchProcess :
886+ pass
875887 self .unpause_sim ()
876888 except Exception as e :
877889 LogManager .logger .exception ("Error suspending process" )
You can’t perform that action at this time.
0 commit comments