Commits

Anonymous committed 364be51

interface: killing the process when leaving run_module()

  • Participants
  • Parent commits 6b6f5c4

Comments (0)

Files changed (1)

File ropemode/interface.py

         """Run and perform dynamic object analysis on this module"""
         self._check_project()
         resource = self._get_resource()
-        self.project.pycore.run_module(resource).wait_process()
+        process = self.project.pycore.run_module(resource)
+        try:
+            process.wait_process()
+        finally:
+            process.kill_process()
 
     def _create(self, name, callback, parentname='source'):
         self._check_project()