summaryrefslogtreecommitdiff
path: root/run-command.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2015-10-07 13:38:16 -0700
committerJunio C Hamano <gitster@pobox.com>2015-10-07 13:38:16 -0700
commit2b72dbbcf3a1d6c6813db2c13afaa1d0d8585f7b (patch)
tree2f81c60d1cecda69be7d189aba6ab99f333efc2d /run-command.h
parent24a00ef646974be49ef7138239c3803805400797 (diff)
parent507d7804c0b094889cd20f23ad9a48e2b76791f3 (diff)
downloadgit-2b72dbbcf3a1d6c6813db2c13afaa1d0d8585f7b.tar.gz
Merge branch 'ti/glibc-stdio-mutex-from-signal-handler'
Allocation related functions and stdio are unsafe things to call inside a signal handler, and indeed killing the pager can cause glibc to deadlock waiting on allocation mutex as our signal handler tries to free() some data structures in wait_for_pager(). Reduce these unsafe calls. * ti/glibc-stdio-mutex-from-signal-handler: pager: don't use unsafe functions in signal handlers
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 629fab7ae0..5428b048e2 100644
--- a/run-command.h
+++ b/run-command.h
@@ -50,6 +50,7 @@ void child_process_init(struct child_process *);
int start_command(struct child_process *);
int finish_command(struct child_process *);
+int finish_command_in_signal(struct child_process *);
int run_command(struct child_process *);
/*