Skip to content

Commit

Permalink
Remove unnecessary process wait on MacOS (#1523)
Browse files Browse the repository at this point in the history
- remove process.communicate() in MacOS causing wait for subprocess even
when the subprocess results were not used.
  • Loading branch information
cedel1 committed Aug 31, 2023
1 parent e52a60e commit 8241f4b
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions httpie/internal/daemons.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,6 @@ def _spawn_posix(args: List[str], process_context: ProcessContext) -> None:
# Double-fork is not reliable on MacOS, so we'll use a subprocess
# to ensure the task is isolated properly.
process = _start_process(args, env=process_context)
# Unlike windows, since we already completed the fork procedure
# we can simply join the process and wait for it.
process.communicate()
else:
os.environ.update(process_context)
with suppress(BaseException):
Expand Down

0 comments on commit 8241f4b

Please sign in to comment.