From a89276f1010200a98fb7cdc1a0bdf6ff48247ce6 Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Sun, 26 Sep 1999 22:05:27 +0000 Subject: zsh-workers/8056 --- Src/signals.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Src') diff --git a/Src/signals.c b/Src/signals.c index 0c8aeb22e..50af1b400 100644 --- a/Src/signals.c +++ b/Src/signals.c @@ -523,8 +523,10 @@ handler(int sig) if (sigtrapped[SIGALRM]) { int tmout; dotrap(SIGALRM); - if ((tmout = getiparam("TMOUT"))) - alarm(tmout); /* reset the alarm */ + HEAPALLOC { + if ((tmout = getiparam("TMOUT"))) + alarm(tmout); /* reset the alarm */ + } LASTALLOC; } else { int idle = ttyidlegetfn(NULL); int tmout = getiparam("TMOUT"); -- cgit 1.4.1