Date: Tue, 15 Apr 2014 17:00:36 +0000 (UTC) From: Baptiste Daroussin <bapt@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r351349 - head/ports-mgmt/pkg-devel/files Message-ID: <201404151700.s3FH0a19033780@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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); +
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201404151700.s3FH0a19033780>