Report failure when a process cannot be spawned (MinGW only).

This commit is contained in:
Johannes Sixt
2007-01-08 17:48:23 +01:00
parent e7a70c5ddf
commit 2bd27c7c97

View File

@@ -85,6 +85,8 @@ int spawnvpe_pipe(const char *cmd, const char **argv, const char **env,
quote_argv(qargv, argv);
pid = spawnvpe(_P_NOWAIT, cmd, qargv, env);
if (pid < 0)
die("unable to run %s", cmd);
free(qargv); /* TODO: quoted args should be freed, too */