asynctools
asynctools copied to clipboard
Fix a bug in the `execProcess` procedure
There was a race condition in the execProcess
procedure. The future for awaiting a process to finish should be created before the process actually finishes.
Using this branch, I got another kind of race condition: "Process does not exist" It seem that in some cases, you can't use "waitForExit" just after "startProcess" finished