fix for make 4.1 on 10.12

Jack Howarth <[email protected]>
Newsgroups gmane.os.apple.fink.devel
Message-ID <CAP5Ds0AhjMyAhwvNJ=5x_sQWeeAmv5aGtooy8Du=cfvFdniRZA@mail.gmail.com>
The attached packaging adds the change...

diff -uNr make-4.1.orig/main.c make-4.1/main.c
--- make-4.1.orig/main.c        2014-10-05 12:24:51.000000000 -0400
+++ make-4.1/main.c     2015-10-20 22:08:00.000000000 -0400
@@ -3364,9 +3364,12 @@
 #else
       /* Close the write side, so the read() won't hang.  */
       close (job_fds[1]);
-
-      while (read (job_fds[0], &token, 1) == 1)
+      int r;
+      EINTRLOOP (r, read (job_fds[0], &token, 1));
+      while (r == 1) {
         ++tcnt;
+       EINTRLOOP (r, read (job_fds[0], &token, 1));
+      }
 #endif

       if (tcnt != master_job_slots)

which seems to eliminate the build failures with make 4.1 on 10.12 here by
adding the missing usage of the EINTRLOOP() on the read calls in main.c.
             Jack

------------------------------------------------------------------------------

_______________________________________________
Fink-devel mailing list
[email protected]
List archive:
http://news.gmane.org/gmane.os.apple.fink.devel
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-devel
make.info (application/octet-stream, 2 KB) - not displayed
make.patch (application/octet-stream, 544 B)
diff -uNr make-4.1.orig/main.c make-4.1/main.c
--- make-4.1.orig/main.c	2014-10-05 12:24:51.000000000 -0400
+++ make-4.1/main.c	2015-10-20 22:08:00.000000000 -0400
@@ -3364,9 +3364,12 @@
 #else
       /* Close the write side, so the read() won't hang.  */
       close (job_fds[1]);
-
-      while (read (job_fds[0], &token, 1) == 1)
+      int r;
+      EINTRLOOP (r, read (job_fds[0], &token, 1));
+      while (r == 1) {
         ++tcnt;
+	EINTRLOOP (r, read (job_fds[0], &token, 1));
+      }
 #endif
 
       if (tcnt != master_job_slots)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.