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

Make acquire subprocess output capture non-blocking #149

Open
DissectBot opened this issue Mar 14, 2024 · 0 comments
Open

Make acquire subprocess output capture non-blocking #149

DissectBot opened this issue Mar 14, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@DissectBot
Copy link

There is no default way to do this on both Windows & Linux.

The best solution is to have a thread do the reading and let that block. An example can be found here:

[http://eyalarubas.com/python-subproc-nonblock.html]

 

Another way to do it is to make the way the winpmem module does it the default, with intermediate files where stdout and stderr are stored. This circumvents the need to implement non-blocking pipes.

@DissectBot DissectBot added the bug Something isn't working label Mar 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant