Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed local termination
Browse files Browse the repository at this point in the history
Blanca-Fuentes committed Dec 10, 2024
1 parent 30b7d08 commit 2d053bf
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions reframe/core/schedulers/local.py
Original file line number Diff line number Diff line change
@@ -154,6 +154,15 @@ def _term_all(self, job):
children = []

try:
for child in children:
try:
child.terminate()
child.signal = signal.SIGTERM
except (ProcessLookupError, PermissionError,
psutil.NoSuchProcess):
# The process group may already be dead or assigned
# to a different group, so ignore this error
self.log(f'child pid {child.pid} already dead')
job.proc.terminate()
job._signal = signal.SIGTERM
for child in children:

0 comments on commit 2d053bf

Please sign in to comment.