Move call_summary() from cleanup() to terminate()
authorEugene Syromyatnikov <evgsyr@gmail.com>
Tue, 19 Feb 2019 02:57:34 +0000 (03:57 +0100)
committerDmitry V. Levin <ldv@altlinux.org>
Tue, 19 Feb 2019 19:14:31 +0000 (19:14 +0000)
commit84d57f25df323dc1c44a1ae86ecf06a194913560
tree665e4852ff594128fd684233e7159fdff8bd018d
parentff21492604540c96375d1d79db4b09600a60d8ac
Move call_summary() from cleanup() to terminate()

cleanup() has exactly two call sites, die() and terminate(), and the
first one resets cflag in order to prevent call_summary() invocation.
Move the call to terminate() in order to avoid bogus cflag reset.

* strace.c (die): Remove cflag reset.
(cleanup): Move call_summary() call ...
(terminate): ... here.
strace.c