Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/make Job_AbortAll(): add missing Lst_Close().



details:   https://anonhg.NetBSD.org/src/rev/f449dd440331
branches:  trunk
changeset: 523699:f449dd440331
user:      pk <pk%NetBSD.org@localhost>
date:      Thu Mar 14 08:07:55 2002 +0000

description:
Job_AbortAll(): add missing Lst_Close().

diffstat:

 usr.bin/make/job.c |  13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)

diffs (47 lines):

diff -r b514e035cfd9 -r f449dd440331 usr.bin/make/job.c
--- a/usr.bin/make/job.c        Thu Mar 14 08:07:06 2002 +0000
+++ b/usr.bin/make/job.c        Thu Mar 14 08:07:55 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: job.c,v 1.62 2002/03/13 17:46:03 pk Exp $      */
+/*     $NetBSD: job.c,v 1.63 2002/03/14 08:07:55 pk Exp $      */
 
 /*
  * Copyright (c) 1988, 1989, 1990 The Regents of the University of California.
@@ -39,14 +39,14 @@
  */
 
 #ifdef MAKE_BOOTSTRAP
-static char rcsid[] = "$NetBSD: job.c,v 1.62 2002/03/13 17:46:03 pk Exp $";
+static char rcsid[] = "$NetBSD: job.c,v 1.63 2002/03/14 08:07:55 pk Exp $";
 #else
 #include <sys/cdefs.h>
 #ifndef lint
 #if 0
 static char sccsid[] = "@(#)job.c      8.2 (Berkeley) 3/19/94";
 #else
-__RCSID("$NetBSD: job.c,v 1.62 2002/03/13 17:46:03 pk Exp $");
+__RCSID("$NetBSD: job.c,v 1.63 2002/03/14 08:07:55 pk Exp $");
 #endif
 #endif /* not lint */
 #endif
@@ -3117,9 +3117,9 @@
 void
 Job_AbortAll()
 {
-    LstNode            ln;     /* element in job table */
-    Job                *job;   /* the job descriptor in that element */
-    int                foo;
+    LstNode    ln;     /* element in job table */
+    Job                *job;   /* the job descriptor in that element */
+    int                foo;
 
     aborting = ABORT_ERROR;
 
@@ -3146,6 +3146,7 @@
            KILL(job->pid, SIGKILL);
 #endif /* RMT_WANTS_SIGNALS */
        }
+       Lst_Close(jobs);
     }
 
     /*



Home | Main Index | Thread Index | Old Index