From bbffb75f8a3a0f8b02877a68a17b59563b1ce17a Mon Sep 17 00:00:00 2001 From: Alan De Smet <alan.desmet@ssec.wisc.edu> Date: Wed, 9 Apr 2025 10:42:13 -0500 Subject: [PATCH] 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? --- csppfetch/test.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/csppfetch/test.py b/csppfetch/test.py index a24004e..dffad64 100755 --- a/csppfetch/test.py +++ b/csppfetch/test.py @@ -1121,6 +1121,8 @@ if __name__ == '__main__': import logging #logging.basicConfig(format='%(process)d:%(levelname)s:%(message)s', level=logging.DEBUG) + multiprocessing.set_start_method('spawn') + if os.getuid() == 0: # We cannot run as root as # DownloadFunctionsTests.test_download_already_present_non_writable -- GitLab