about summary refs log tree commit diff
path: root/Src/signals.c
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>1999-09-26 22:05:27 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-09-26 22:05:27 +0000
commita89276f1010200a98fb7cdc1a0bdf6ff48247ce6 (patch)
tree27bfd6b44927e89a86d78f220b2e87c92d16c9ca /Src/signals.c
parent134ed0ab4431b94341c8d3f0afe6a89b43d12a16 (diff)
downloadzsh-a89276f1010200a98fb7cdc1a0bdf6ff48247ce6.tar.gz
zsh-a89276f1010200a98fb7cdc1a0bdf6ff48247ce6.tar.xz
zsh-a89276f1010200a98fb7cdc1a0bdf6ff48247ce6.zip
zsh-workers/8056
Diffstat (limited to 'Src/signals.c')
-rw-r--r--Src/signals.c6
1 files changed, 4 insertions, 2 deletions
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");