diff options
Diffstat (limited to 'lib/spack/llnl/util/tty/pty.py')
-rw-r--r-- | lib/spack/llnl/util/tty/pty.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/spack/llnl/util/tty/pty.py b/lib/spack/llnl/util/tty/pty.py index 84c272a6e2..79f4ce20cf 100644 --- a/lib/spack/llnl/util/tty/pty.py +++ b/lib/spack/llnl/util/tty/pty.py @@ -24,6 +24,7 @@ import time import traceback import llnl.util.tty.log as log +from llnl.util.lang import fork_context from spack.util.executable import which @@ -233,7 +234,7 @@ class PseudoShell(object): ``minion_function``. """ - self.proc = multiprocessing.Process( + self.proc = fork_context.Process( target=PseudoShell._set_up_and_run_controller_function, args=(self.controller_function, self.minion_function, self.controller_timeout, self.sleep_time), |