Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: 3.1.6-pws-9: use heap in printjobs



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