eidheim / tiny-process-library

A small platform independent library making it simple to create and stop new processes in C++, as well as writing to stdin and reading from stdout and stderr of a new process
MIT License
338 stars 73 forks source link

Not all file descriptors/handles are yet closed correctly #1

Closed eidheim closed 8 years ago

eidheim commented 8 years ago

See https://www.reddit.com/r/cpp/comments/3vpjqg/a_new_platform_independent_process_library_for_c11/, posts by nexuapex and Jardik.

eidheim commented 8 years ago

File descriptors should now be closed correctly on Unix-like systems.

eidheim commented 8 years ago

Might be that the pipe handles are inherited and closed correctly (apart from 3 handles previously not being closed on unsuccessful CreateProcess) on Windows anyway, even in a multi threaded application.