summaryrefslogtreecommitdiff
path: root/run-command.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2009-02-03 00:26:12 -0800
committerJunio C Hamano <gitster@pobox.com>2009-02-03 00:26:12 -0800
commit1487eb68f7fd145151caa9a11ee00283629b75ef (patch)
treef745afc9bab5014851864b9d0046f9e3b9774acd /run-command.h
parent2ea3c17189bf9ca459879129ca190792b5451f05 (diff)
parentd8e96fd86d415554a9c2e09ffb929a9e22fdad25 (diff)
downloadgit-1487eb68f7fd145151caa9a11ee00283629b75ef.tar.gz
Merge branch 'jk/maint-cleanup-after-exec-failure'
* jk/maint-cleanup-after-exec-failure: git: use run_command() to execute dashed externals run_command(): help callers distinguish errors run_command(): handle missing command errors more gracefully git: s/run_command/run_builtin/
Diffstat (limited to 'run-command.h')
-rw-r--r--run-command.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/run-command.h b/run-command.h
index 0211e1d471..15e870a65e 100644
--- a/run-command.h
+++ b/run-command.h
@@ -10,6 +10,7 @@ enum {
ERR_RUN_COMMAND_WAITPID_SIGNAL,
ERR_RUN_COMMAND_WAITPID_NOEXIT,
};
+#define IS_RUN_COMMAND_ERR(x) ((x) <= -ERR_RUN_COMMAND_FORK)
struct child_process {
const char **argv;