summaryrefslogtreecommitdiff
path: root/run-command.h
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2020-07-07 12:17:14 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-07-07 20:14:05 (GMT)
commite662df7e830a9d93ca36b74a7b5e670e139b0da1 (patch)
treed3a20d2fbe451823a1726578b7e240e45921d3c0 /run-command.h
parentaf6b65d45ef179ed52087e80cb089f6b2349f4ec (diff)
downloadgit-e662df7e830a9d93ca36b74a7b5e670e139b0da1.zip
git-e662df7e830a9d93ca36b74a7b5e670e139b0da1.tar.gz
git-e662df7e830a9d93ca36b74a7b5e670e139b0da1.tar.bz2
Wait for child on signal death for aliases to builtins
When you hit ^C all the processes in the tree receives it. When a git command uses a pager, git ignores this and waits until the pager quits. However, when using an alias there is an additional process in the tree which didn't ignore the signal. That caused it to exit which in turn caused the pager to exit. This fixes that for aliases to builtins. This was originally fixed in 46df6906 (execv_dashed_external: wait for child on signal death, 2017-01-06), but was broken by ee4512ed (trace2: create new combined trace facility, 2019-02-22) and then b9140840 (git: avoid calling aliased builtins via their dashed form, 2019-07-29). Signed-off-by: Trygve Aaberge <trygveaa@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
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 0f3cc73..1641ccf 100644
--- a/run-command.h
+++ b/run-command.h
@@ -224,6 +224,7 @@ int run_hook_ve(const char *const *env, const char *name, va_list args);
#define RUN_SILENT_EXEC_FAILURE 8
#define RUN_USING_SHELL 16
#define RUN_CLEAN_ON_EXIT 32
+#define RUN_WAIT_AFTER_CLEAN 64
/**
* Convenience functions that encapsulate a sequence of