Comments (1)
Yes, this is expected. If the terminate is called the child handle is in valid. You would have to call wait prior to terminate. You could technically check with c.running()
but that would be a race condition in your specific example.
If you want to use a highly-threaded environment, this seems like bad design; you launch a thread just to suspend it. I would recommend to take a look at asio
, which might seem complex in the beginning, but will work flawlessly in this scenario.
from boost-process.
Related Issues (20)
- file descriptor leak on linux HOT 2
- avoid crash on linux HOT 1
- Typo in doc: boost-process/doc/concepts.qbk
- Extra warnings on MSVC 2019 HOT 1
- Enable ability to set the job object to kill children processes if the parent dies HOT 4
- Linux: on_exit error when using synchronous calls HOT 3
- _env_impl update missing in reload() in native_environment_impl<wchar_t>
- CLang in Windows reports non-void function does not return a value HOT 1
- Zombie process In Boost:: process::wait_until(wait_for_exit.hpp) HOT 6
- opstream::close() does not close the underlying pipe as I would have expected HOT 1
- wait_for waits until timeout if there is a second child process HOT 1
- two children with closed pipes hang causes wait_for to timeout and return false HOT 1
- [question] will this resolve ASIO not safe when call fork issue? HOT 3
- Group wait does not wait for demonized processes on Linux HOT 1
- Win32: Incorrect handling of GetEnvironmentVariable return value HOT 1
- env.hpp is not standalone HOT 1
- Compilation fails with '/permissive-' in Boost 1.75.0 when "boost/process/group.hpp" is included
- How can I read the output of 'socat' command using boost::process::system ? HOT 1
- Pipe_out not implement uses_handles. HOT 1
- Need a way to obtain pid_t of the current process HOT 1
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 boost-process.