Skip to content

Commit 57e6f1f

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 57e6f1f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

httpie/internal/daemons.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,7 @@ def _spawn_posix(args: List[str], process_context: ProcessContext) -> None:
8787
if platform.system() == 'Darwin':
8888
# Double-fork is not reliable on MacOS, so we'll use a subprocess
8989
# to ensure the task is isolated properly.
90-
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()
90+
_start_process(args, env=process_context)
9491
else:
9592
os.environ.update(process_context)
9693
with suppress(BaseException):

0 commit comments

Comments
 (0)