Skip to content

Commit

Permalink
set forkserver here, todo: windows?
Browse files Browse the repository at this point in the history
  • Loading branch information
jonwright committed Feb 12, 2024
1 parent 4562815 commit 691f626
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ImageD11/sinograms/point_by_point.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@
# Try to build the point-by-point mapping code ...
from __future__ import print_function, division

from ImageD11 import cImageD11 # patches to forkserver
import multiprocessing
method = multiprocessing.set_start_method("forkserver")
from ImageD11 import cImageD11 # NO!!! patches to forkserver

method = multiprocessing.get_start_method()
assert method in ("spawn", "forkserver"), "mp:" + method
import sys, os
from multiprocessing.managers import SharedMemoryManager
import time, random
Expand Down

0 comments on commit 691f626

Please sign in to comment.