]> granicus.if.org Git - strace/commit
strace.c: pass signal number to cleanup()
authorEugene Syromyatnikov <evgsyr@gmail.com>
Thu, 21 Feb 2019 11:56:29 +0000 (12:56 +0100)
committerDmitry V. Levin <ldv@altlinux.org>
Mon, 25 Feb 2019 19:08:05 +0000 (19:08 +0000)
commit8d7a451fa115674049a2a76fba839a5464ef5eb2
treeb2c0c7ba354d2ff73074d70204a392c0d6252bfe
parent7cc6eb706ba7f67d1e84fe903e59ce824f799df5
strace.c: pass signal number to cleanup()

* strace.c (die): Pass 0 as an argument to cleanup().
(cleanup): Add fatal_sig parameter, remove the local variable
of the same name, do not use interrupted.
(terminate): Initialise a new local variable "sig" with "interrupted",
pass it to cleanup() and use it instead of "interrupted" for exit_code
initialisation.
strace.c