Skip to content
Snippets Groups Projects
Commit bbffb75f authored by Alan De Smet's avatar Alan De Smet
Browse files

Change multiprocessing from using fork to spawn

This eliminates the use of os.fork that could potentially cause a race
with threads and definitely genrates a DeprecatinWarning in Python 3.12.
How are we using threads? That's a mystery! Maybe multiprocessing.Queue?
parent a6ac393c
No related branches found
No related tags found
No related merge requests found
...@@ -1121,6 +1121,8 @@ if __name__ == '__main__': ...@@ -1121,6 +1121,8 @@ if __name__ == '__main__':
import logging import logging
#logging.basicConfig(format='%(process)d:%(levelname)s:%(message)s', level=logging.DEBUG) #logging.basicConfig(format='%(process)d:%(levelname)s:%(message)s', level=logging.DEBUG)
multiprocessing.set_start_method('spawn')
if os.getuid() == 0: if os.getuid() == 0:
# We cannot run as root as # We cannot run as root as
# DownloadFunctionsTests.test_download_already_present_non_writable # DownloadFunctionsTests.test_download_already_present_non_writable
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment