diff options
Diffstat (limited to 'common-main.c')
-rw-r--r-- | common-main.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/common-main.c b/common-main.c index aa8d5aba5b..29fb7452f8 100644 --- a/common-main.c +++ b/common-main.c @@ -55,7 +55,10 @@ int main(int argc, const char **argv) result = cmd_main(argc, argv); - trace2_cmd_exit(result); - - return result; + /* + * We define exit() to call trace2_cmd_exit_fl() in + * git-compat-util.h. Whether we reach this or exit() + * elsewhere we'll always run our trace2 exit handler. + */ + exit(result); } |