Initialise the status variable. W_SETTERMSIG uses its value.
authorMax Okumoto <okumoto@dragonflybsd.org>
Fri, 11 Feb 2005 01:04:41 +0000 (01:04 +0000)
committerMax Okumoto <okumoto@dragonflybsd.org>
Fri, 11 Feb 2005 01:04:41 +0000 (01:04 +0000)
Author: harti
Taken-from: FreeBSD

usr.bin/make/job.c

index 7630b07..73b49c4 100644 (file)
@@ -38,7 +38,7 @@
  *
  * @(#)job.c   8.2 (Berkeley) 3/19/94
  * $FreeBSD: src/usr.bin/make/job.c,v 1.17.2.2 2001/02/13 03:13:57 will Exp $
- * $DragonFly: src/usr.bin/make/job.c,v 1.41 2005/02/01 22:05:36 okumoto Exp $
+ * $DragonFly: src/usr.bin/make/job.c,v 1.42 2005/02/11 01:04:41 okumoto Exp $
  */
 
 #ifndef OLD_JOKE
@@ -1351,6 +1351,7 @@ JobRestart(Job *job)
                 * actually put the thing in the job table.
                 */
                job->flags |= JOB_CONTINUING;
+               status = 0;
                W_SETTERMSIG(&status, SIGCONT);
                JobFinish(job, &status);