diff options
author | Brandon Casey <drafnel@gmail.com> | 2012-11-14 17:45:52 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-11-15 18:04:54 -0800 |
commit | cd163d4b4e190d5e5131962c1b8f84601d4736d4 (patch) | |
tree | b84cd743be4e7db07b924b053313e54ac2eefe8c /progress.h | |
parent | 7e2010537e96d0a1144520222f20ba1dc3d61441 (diff) | |
download | git-cd163d4b4e190d5e5131962c1b8f84601d4736d4.tar.gz git-cd163d4b4e190d5e5131962c1b8f84601d4736d4.tar.xz |
usage.c: detect recursion in die routines and bail out immediately
It is theoretically possible for a die handler to get into a state of
infinite recursion. For example, if a die handler called another function
which itself called die(). Let's at least detect this situation, inform the
user, and call exit.
Signed-off-by: Brandon Casey <bcasey@nvidia.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'progress.h')
0 files changed, 0 insertions, 0 deletions