summaryrefslogtreecommitdiffstats
path: root/main/make/make-3.82-jobserver.patch
blob: 2a855031dd0633a677131870d008e3131b96fc01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff -up make-3.82/main.c\~ make-3.82/main.c
--- make-3.82/main.c~	2010-08-12 14:59:20.000000000 +0200
+++ make-3.82/main.c	2010-08-12 15:00:07.000000000 +0200
@@ -1756,8 +1756,11 @@ main (int argc, char **argv, char **envp
 
       if (job_slots > 0)
         {
-          close (job_fds[0]);
-          close (job_fds[1]);
+	  if (restarts == 0)
+	    {
+	      close (job_fds[0]);
+	      close (job_fds[1]);
+	    }
           job_fds[0] = job_fds[1] = -1;
           free (jobserver_fds->list);
           free (jobserver_fds);

Diff finished.  Thu Aug 12 15:00:22 2010