scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

commit a843f8a68a1fcacd28ae814c360ea121e713ec54
parent f407a239bb2ca46375496a2929abcf1325937483
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Mon, 19 Feb 2018 21:58:07 +0000

[ar] Remove direct call to cleanup()

The signal handler was calling to exit(), so it means that the
reguistered functions with atexit() are going to be called anyway,
and this double call can generate some problems, so it is better
to avoid it.

Diffstat:
Mar/main.c | 1-
1 file changed, 0 insertions(+), 1 deletion(-)

diff --git a/ar/main.c b/ar/main.c @@ -44,7 +44,6 @@ cleanup(void) static void sigfun(int signum) { - cleanup(); exit(1); }