Skip to content

Commit

Permalink
Amend the wording
Browse files Browse the repository at this point in the history
  • Loading branch information
ChihHao-Su authored Sep 16, 2022
1 parent fa69b7b commit 9294030
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions a_openbsd_issue.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ You can apply this patch to `src/execution/process_base.py`:
- group_id = os.getpgid(self.get_process_id())
- os.killpg(group_id, signal.SIGTERM)
+ psutil_self_proc = psutil.Process(self.get_process_id())
+ # Send SIGKILL to child processes.
+ # Send SIGTERM to child processes.
+ for curr_sub_proc in psutil_self_proc.children(recursive=True):
+ try:
+ curr_sub_proc.terminate()
Expand Down Expand Up @@ -61,7 +61,7 @@ You can apply this patch to `src/execution/process_base.py`:
+ except psutil.NoSuchProcess:
+ pass
+
+ # Send SIGTERM to self.
+ # Send SIGKILL to self.
+ psutil_self_proc.kill()
+
self._write_script_output('\n>> KILLED\n')
Expand Down

0 comments on commit 9294030

Please sign in to comment.