Skip to content

Commit d51a0de

Browse files
authored
(torchx/local_scheduler) go back to using os.killpg in local_scheduler
Differential Revision: D74205288 Pull Request resolved: #1064
1 parent 8216ac4 commit d51a0de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torchx/schedulers/local_scheduler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ def terminate(self) -> None:
311311
"""
312312
# safe to call terminate on a process that already died
313313
try:
314-
os.kill(self.proc.pid, signal.SIGTERM)
314+
os.killpg(self.proc.pid, signal.SIGTERM)
315315
except ProcessLookupError as e:
316316
log.debug(f"Process {self.proc.pid} already got terminated")
317317

0 commit comments

Comments
 (0)