From 2bd27c7c97f73a8da1c65a2d0096e094283ac59f Mon Sep 17 00:00:00 2001 From: Johannes Sixt Date: Mon, 8 Jan 2007 17:48:23 +0100 Subject: [PATCH] Report failure when a process cannot be spawned (MinGW only). --- spawn-pipe.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spawn-pipe.c b/spawn-pipe.c index fc179c8cdc..716c52902c 100644 --- a/spawn-pipe.c +++ b/spawn-pipe.c @@ -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 */