From 5df2189e43f82369aafc54d15c3c872a840a5484 Mon Sep 17 00:00:00 2001 From: Harmen Stoppels Date: Wed, 23 Oct 2024 15:46:15 +0200 Subject: [PATCH] Avoid a socket to communicate effectively a bit --- lib/spack/llnl/util/tty/log.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/spack/llnl/util/tty/log.py b/lib/spack/llnl/util/tty/log.py index 9c981a45f19..a99efaba922 100644 --- a/lib/spack/llnl/util/tty/log.py +++ b/lib/spack/llnl/util/tty/log.py @@ -487,12 +487,12 @@ def __enter__(self): # forcing debug output. self._saved_debug = tty._debug - # OS-level pipe for redirecting output to logger + # Pipe for redirecting output to logger read_fd, write_fd = multiprocessing.Pipe(duplex=False) - # Multiprocessing pipe for communication back from the daemon + # Pipe for communication back from the daemon # Currently only used to save echo value between uses - self.parent_pipe, child_pipe = multiprocessing.Pipe() + self.parent_pipe, child_pipe = multiprocessing.Pipe(duplex=False) # Sets a daemon that writes to file what it reads from a pipe try: