Closed alex6dj closed 2 years ago
I think we should avoid the use of process id zero or at least inform the behaviour.
If the target file path doesn't exist, it should throw an exception before it even produces StartedCommandEvent
. Are you sure that's what's happening?
Yes, I am sure this is what is happening in my case. I am going to try to create a small project to replicate the error.
Project done. CliWrapWrongIdExample
This use latest version (3.4) and same behaviour.
Thanks I'll take a look
Thank you for the report, fixed. It should now throw an exception as expected.
Version
3.3.3
Details
When I try tu run an executable using this library, and the executable dont exist, it reports process id as zero. The problem is that the zero process id is valid and it represent the
System Idle Process,
it is not really a process but can cause aWin32Exception
if you try to change his id process priority.Steps to reproduce
This is part of my code
Install library
Execute a command but with a wrong executable path (Windows).