pocoproject / poco

The POCO C++ Libraries are powerful cross-platform C++ libraries for building network- and internet-based applications that run on desktop, server, mobile, IoT, and embedded systems.
https://pocoproject.org
Other
8.05k stars 2.11k forks source link

ProcessRunner does not detect launch errors #4482

Open aleks-f opened 4 months ago

aleks-f commented 4 months ago

Describe the bug Launch thread silently ignores any errors or exceptions.

To Reproduce Launch a non-existing executable.

EDIt: there seems to be no reliable portable way to detect what exactly happens with the launched process (not even when the executable does not exist). Seems best to add the executable file existence check which includes cwd and environment path, and not even try to launch a non-existent executable.