Skip to content

Commit 59658ca

Browse files
committed
Assure multiprocess start method is fork
Python 3.14 in Fedora 43 changes the default start method for multiprocessing away from fork. We set it back to `fork`. resolves: QubesOS/qubes-issues#10225
1 parent cc9c5f5 commit 59658ca

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

qubesadmin/backup/restore.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@
5555
from qubesadmin.utils import size_to_human
5656

5757

58+
# Python 3.14 in Fedora 43 changes the default start method away from fork
59+
if multiprocessing.get_start_method(allow_none=True) != "fork":
60+
multiprocessing.set_start_method("fork")
61+
5862
# must be picklable
5963
QUEUE_FINISHED = "!!!FINISHED"
6064
QUEUE_ERROR = "!!!ERROR"

0 commit comments

Comments
 (0)