Commit 802f5623 authored by Médéric Boquien's avatar Médéric Boquien

Running the scripts in parallel trigger a deadlock on OS X with python 3.5. Implement a workaround.

parent 9831e294
......@@ -4,6 +4,7 @@
### Added
### Changed
### Fixed
- Running the scripts in parallel trigger a deadlock on OS X with python 3.5. A workaround has been implemented.
### Optimised
......
......@@ -122,6 +122,12 @@ def plot_filters(fnames):
def main():
if sys.version_info[:2] >= (3, 4):
mp.set_start_method('spawn')
else:
print("Could not set the multiprocessing start method to spawn. If "
"you encounter a deadlock, please upgrade to Python≥3.4.")
parser = argparse.ArgumentParser()
subparsers = parser.add_subparsers(help="List of commands")
......
......@@ -363,6 +363,12 @@ def sed(config, sed_type, nologo):
def main():
if sys.version_info[:2] >= (3, 4):
mp.set_start_method('spawn')
else:
print("Could not set the multiprocessing start method to spawn. If "
"you encounter a deadlock, please upgrade to Python≥3.4.")
parser = argparse.ArgumentParser()
parser.add_argument('-c', '--conf-file', dest='config_file',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment