Skip to content

Commit 8241f4b

Browse files
committed
Remove unnecessary process wait on MacOS (#1523)
- remove process.communicate() in MacOS causing wait for subprocess even when the subprocess results were not used.
1 parent e52a60e commit 8241f4b

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

httpie/internal/daemons.py

-3
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,6 @@ def _spawn_posix(args: List[str], process_context: ProcessContext) -> None:
8888
# Double-fork is not reliable on MacOS, so we'll use a subprocess
8989
# to ensure the task is isolated properly.
9090
process = _start_process(args, env=process_context)
91-
# Unlike windows, since we already completed the fork procedure
92-
# we can simply join the process and wait for it.
93-
process.communicate()
9491
else:
9592
os.environ.update(process_context)
9693
with suppress(BaseException):

0 commit comments

Comments
 (0)