zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: 3.1.6-pws-9: use heap in printjobs
@ 1999-11-26 22:09 Peter Stephenson
  0 siblings, 0 replies; only message in thread
From: Peter Stephenson @ 1999-11-26 22:09 UTC (permalink / raw)
  To: Zsh hackers list

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@pwstephenson.fsnet.co.uk>


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1999-11-26 22:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-11-26 22:09 PATCH: 3.1.6-pws-9: use heap in printjobs Peter Stephenson

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).