Comments (4)
I can't think of a better solution than to advise you use async. I don't really want to start spawning threads behind your back to handle this kind of thing (and don't know of another way to generally fix this!).
from subprocess.h.
For my case, I am actually not using the outputs. So it might be good to allow ignoring stdout/stderr.
Actually, did I misunderstand something? It seems like I can read from stdout before I join. At least it works on Linux.
from subprocess.h.
I might be able to add an option to ignore stdout/stderr aye.
You should be able to read before join iirc, its just that if you don't have enough data to read it could block forever.
from subprocess.h.
I thought it should return EOF?
from subprocess.h.
Related Issues (20)
- Verboser output of child in case of invalid/unknown command HOT 2
- Adding lifetime documentation HOT 3
- Feature Request: set the cwd for created processes HOT 3
- unable to read from stdout HOT 3
- Replacement of execvp for execv break compatibility. HOT 6
- MinGW support HOT 3
- Incorrect argument quoting on Windows HOT 3
- Do not execute `commandLineCombined` when we have only one command parameter HOT 4
- Should subprocess_option_search_user_path use the PATH from any environment to subprocess_create_ex? HOT 3
- posix_spawn does not build on Android & Emscripten (Wasm) HOT 1
- Unicode support on Windows? HOT 8
- Do you have a complete example of how to display the output of a command?
- Commands that need to be run as root/sudo fail silently
- Is it possible to hide the console window?
- Did I say thank you?
- Windows subprocess_stdin and subprocess_option_enable_async? HOT 2
- subprocess_read_stdout() blocks HOT 4
- A
- vector<std::string> of commandline args HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from subprocess.h.