From 709ce3829cb1c7bfeade8b18b39cd601b9e0decc Mon Sep 17 00:00:00 2001 From: Bart Schaefer Date: Sat, 3 Jun 2000 16:26:47 +0000 Subject: 11736: Fix TRAPEXIT scoping. --- Src/signals.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Src/signals.c') diff --git a/Src/signals.c b/Src/signals.c index b8e06d444..9b9ef97aa 100644 --- a/Src/signals.c +++ b/Src/signals.c @@ -751,7 +751,7 @@ removetrap(int sig) * one, to aid in removing this one. However, if there's * already one at the current locallevel we just overwrite it. */ - if (isset(LOCALTRAPS) && locallevel && + if ((isset(LOCALTRAPS) || sig == SIGEXIT) && locallevel && (!trapped || locallevel > (sigtrapped[sig] >> ZSIG_SHIFT))) dosavetrap(sig, locallevel); -- cgit 1.4.1