diff options
| author | Junio C Hamano <gitster@pobox.com> | 2015-10-07 13:38:16 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2015-10-07 13:38:16 -0700 |
| commit | 2b72dbbcf3a1d6c6813db2c13afaa1d0d8585f7b (patch) | |
| tree | 2f81c60d1cecda69be7d189aba6ab99f333efc2d /run-command.h | |
| parent | Start cycle toward 2.7 (diff) | |
| parent | pager: don't use unsafe functions in signal handlers (diff) | |
| download | git-2b72dbbcf3a1d6c6813db2c13afaa1d0d8585f7b.tar.gz git-2b72dbbcf3a1d6c6813db2c13afaa1d0d8585f7b.zip | |
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.h | 1 |
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 *); /* |
