Skip to content

Commit

Permalink
Set Process to use spawn instead of fork
Browse files Browse the repository at this point in the history
  • Loading branch information
lahtinep committed Oct 17, 2024
1 parent 5ecd049 commit ccd2df3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion trollflow2/tests/test_launcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -918,7 +918,7 @@ def test_sigterm_runner(lc_, tmp_path, caplog):
"""Test that sending sigterm to Trollflow2 stops it."""
import os
import signal
from multiprocessing import Process
from multiprocessing import Process, set_start_method

from posttroll.message import Message

Expand All @@ -935,6 +935,8 @@ def test_sigterm_runner(lc_, tmp_path, caplog):

connection_parameters = {}
runner = Runner(product_list, connection_parameters)

set_start_method("spawn")
proc = Process(target=runner.run)
proc.start()
tic = time.time()
Expand Down

0 comments on commit ccd2df3

Please sign in to comment.