From 0c1223ced0d5bf85851ef999673ccfa521db0cdb Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Wed, 11 Aug 2010 04:32:32 -0400 Subject: [PATCH] posix: show execvp errors stderr isn't usually connected to a terminal, so use the error reporting system to log the failure. Signed-off-by: Erik Faye-Lund --- compat/posix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compat/posix.c b/compat/posix.c index 86ff5c6..f159d7e 100644 --- a/compat/posix.c +++ b/compat/posix.c @@ -61,7 +61,7 @@ pid_t fork_process(const char *cmd, const char **args, const char *wd) execvp(cmd,(char **)args); /* here this code is done, if not something went wrong */ - fprintf(stderr, "execv failed: %s, Error: %s\n", cmd, strerror(errno)); + debug_git("execv failed: %s, Error: %s\n", cmd, strerror(errno)); exit(-ERR_RUN_COMMAND_FORK); } -- 2.11.4.GIT