Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent proc_open from hanging #1992

Merged
merged 3 commits into from
Feb 24, 2023
Merged

Prevent proc_open from hanging #1992

merged 3 commits into from
Feb 24, 2023

Conversation

jimsafley
Copy link
Member

@jimsafley jimsafley commented Jan 28, 2023

Fixes #1990

@jimsafley jimsafley changed the title Prevent proc_open from hanging (fix #1990) Prevent proc_open from hanging Jan 30, 2023
jimsafley and others added 2 commits February 23, 2023 11:06
- use stream_get_contents, which will get all available content each
  loop step, instead of just a small chunk from fread
- sleep a quarter-second on each loop so we're not checking constantly
  for new output when there is none or very little (stream_select is a
  possible alternative there but there are cross-platform issues)
@zerocrates zerocrates merged commit 68eac5d into develop Feb 24, 2023
@zerocrates zerocrates deleted the proc-open-no-hang branch February 24, 2023 20:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

proc_open CLI execute strategy can hang
2 participants