|
Sonde v1.1.0
Embeddable Model Context Protocol server for Qt applications
|
Makes sonde's own standard input, output and error not inherited by the processes it starts, for as long as it exists: on Windows, QProcess lets a child inherit every inheritable handle, and a child that outlives the command (the application, or a build server) would keep a caller's pipe open. More...
#include <processes.h>
Public Member Functions | |
| StdHandlesNotInherited () | |
| Makes the handles not inherited, remembering how they were. | |
| ~StdHandlesNotInherited ()=default | |
| Nothing to put back. | |
Private Attributes | |
| std::array< unsigned long, 3 > | m_flags { } |
| Each handle's flags before (Windows). | |
Makes sonde's own standard input, output and error not inherited by the processes it starts, for as long as it exists: on Windows, QProcess lets a child inherit every inheritable handle, and a child that outlives the command (the application, or a build server) would keep a caller's pipe open.
Nothing on POSIX, where the child's 0, 1 and 2 are replaced.