usage.c: detect recursion in die routines and bail out immediately
authorBrandon Casey <redacted>
Thu, 15 Nov 2012 01:45:52 +0000 (17:45 -0800)
committerJunio C Hamano <redacted>
Fri, 16 Nov 2012 02:04:54 +0000 (18:04 -0800)
commitcd163d4b4e190d5e5131962c1b8f84601d4736d4
treeb84cd743be4e7db07b924b053313e54ac2eefe8c
parent7e2010537e96d0a1144520222f20ba1dc3d61441
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 <redacted>
Signed-off-by: Junio C Hamano <redacted>
usage.c
git clone https://git.99rst.org/PROJECT