Skip to content

Commit

Permalink
Windows tools: Do not wait for sub-process to return when using tool.…
Browse files Browse the repository at this point in the history
…then() (allows 71b2c2 to work properly on Windows)
  • Loading branch information
andycarle committed Dec 2, 2022
1 parent 16e48ed commit f9a0787
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tools/tool.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,7 @@ int main(int argc, char* argv[])
xsDeleteMachine(machine);
if (!error && then) {
#if mxWindows
error =_spawnvp(_P_WAIT, then[0], then);
if (error < 0)
fprintf(stderr, "### Cannot execute %s!\n", then[0]);
_spawnvp(_P_NOWAIT, then[0], then);
#else
execvp(then[0], then);
#endif
Expand Down

0 comments on commit f9a0787

Please sign in to comment.