Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: 3.1.6-pws-9: use heap in printjobs
- X-seq: zsh-workers 8793
- From: Peter Stephenson <pws@xxxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx (Zsh hackers list)
- Subject: PATCH: 3.1.6-pws-9: use heap in printjobs
- Date: Fri, 26 Nov 1999 22:09:14 +0000
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
This fixes an error message about using permanent allocation when
a background job exits and the notify message is printed.
--- Src/jobs.c.uh Wed Oct 6 18:58:17 1999
+++ Src/jobs.c Wed Nov 24 20:37:35 1999
@@ -548,8 +548,11 @@
if (j->stat & STAT_TIMED)
return 1;
- if (!(v = getvalue(&s, 0)) || (reporttime = getintvalue(v)) < 0)
- return 0;
+ HEAPALLOC {
+ if (!(v = getvalue(&s, 0)) || (reporttime = getintvalue(v)) < 0) {
+ LASTALLOC_RETURN 0;
+ }
+ } LASTALLOC;
/* can this ever happen? */
if (!j->procs)
--
Peter Stephenson <pws@xxxxxxxxxxxxxxxxxxxxxxxx>
Messages sorted by:
Reverse Date,
Date,
Thread,
Author