svn commit: r351349 - head/ports-mgmt/pkg-devel/files

Baptiste Daroussin bapt at FreeBSD.org
Tue Apr 15 17:00:36 UTC 2014


Author: bapt
Date: Tue Apr 15 17:00:35 2014
New Revision: 351349
URL: http://svnweb.freebsd.org/changeset/ports/351349
QAT: https://qat.redports.org/buildarchive/r351349/

Log:
  Add a patch to fix build on FreeBSD 8.x and 9.1
  No bump has there is no changes for version where it built

Added:
  head/ports-mgmt/pkg-devel/files/patch-fix-waitpid   (contents, props changed)

Added: head/ports-mgmt/pkg-devel/files/patch-fix-waitpid
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/ports-mgmt/pkg-devel/files/patch-fix-waitpid	Tue Apr 15 17:00:35 2014	(r351349)
@@ -0,0 +1,25 @@
+diff --git src/main.c src/main.c
+index ad44520..b5c5320 100644
+--- src/main.c
++++ src/main.c
+@@ -38,6 +38,7 @@
+ 
+ #include <assert.h>
+ #include <err.h>
++#include <errno.h>
+ #include <inttypes.h>
+ #include <stdio.h>
+ #include <stdlib.h>
+@@ -434,8 +435,10 @@ start_process_worker(void)
+ 			if (child_pid == -1)
+ 				err(EX_OSERR, "Failed to fork worker process");
+ 
+-			if (waitpid(child_pid, &status, WEXITED) == -1)
+-				err(EX_OSERR, "Child process pid=%d", child_pid); 
++			while (waitpid(child_pid, &status, 0) == -1) {
++				if (errno != EINTR)
++					err(EX_OSERR, "Child process pid=%d", child_pid);
++			}
+ 
+ 			ret = WEXITSTATUS(status);
+ 


More information about the svn-ports-head mailing list