Skip to content

Commit

Permalink
process termination
Browse files Browse the repository at this point in the history
  • Loading branch information
mquinnfd committed Jul 23, 2024
1 parent 9cd9b98 commit 2c900fa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion locust/test/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -2269,6 +2269,7 @@ def test_processes_ctrl_c(self):
stderr=PIPE,
text=True,
shell=True,
start_new_session=True,
)
gevent.sleep(3)
children = proc.children(recursive=False)
Expand All @@ -2277,7 +2278,9 @@ def test_processes_ctrl_c(self):
children = children[0].children()
self.assertEqual(len(children), 4, "unexpected number of child worker processes")

proc.send_signal(signal.SIGINT)
os.killpg(os.getpgid(proc.pid), signal.SIGINT)
# proc.send_signal(signal.SIGINT)
# os.killpg(proc.pid, signal.SIGTERM)
gevent.sleep(2)

for child in children:
Expand Down

0 comments on commit 2c900fa

Please sign in to comment.