diff options
author | Brandon Williams <bmwill@google.com> | 2017-04-19 16:13:24 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-04-20 17:55:32 -0700 |
commit | 79319b1949f0055bd42bac7fa398fca8c2f26116 (patch) | |
tree | 695dabe84317d98037f7130264485e4a6e018f1f /t/t5802-connect-helper.sh | |
parent | run-command: don't die in child when duping /dev/null (diff) | |
download | tgif-79319b1949f0055bd42bac7fa398fca8c2f26116.tar.xz |
run-command: eliminate calls to error handling functions in child
All of our standard error handling paths have the potential to
call malloc or take stdio locks; so we must avoid them inside
the forked child.
Instead, the child only writes an 8 byte struct atomically to
the parent through the notification pipe to propagate an error.
All user-visible error reporting happens from the parent;
even avoiding functions like atexit(3) and exit(3).
Helped-by: Eric Wong <e@80x24.org>
Signed-off-by: Brandon Williams <bmwill@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5802-connect-helper.sh')
0 files changed, 0 insertions, 0 deletions