Merge branch 'ti/glibc-stdio-mutex-from-signal-handler'
commit2b72dbbcf3a1d6c6813db2c13afaa1d0d8585f7b
authorJunio C Hamano <gitster@pobox.com>
Wed, 7 Oct 2015 20:38:16 +0000 (7 13:38 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 7 Oct 2015 20:38:16 +0000 (7 13:38 -0700)
tree2f81c60d1cecda69be7d189aba6ab99f333efc2d
parent24a00ef646974be49ef7138239c3803805400797
parent507d7804c0b094889cd20f23ad9a48e2b76791f3
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
pager.c
run-command.c
run-command.h