From owner-svn-ports-all@FreeBSD.ORG Tue Apr 15 17:00:36 2014 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 783F9CDC; Tue, 15 Apr 2014 17:00:36 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 652BF12A9; Tue, 15 Apr 2014 17:00:36 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s3FH0a5W033781; Tue, 15 Apr 2014 17:00:36 GMT (envelope-from bapt@svn.freebsd.org) Received: (from bapt@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s3FH0a19033780; Tue, 15 Apr 2014 17:00:36 GMT (envelope-from bapt@svn.freebsd.org) Message-Id: <201404151700.s3FH0a19033780@svn.freebsd.org> From: Baptiste Daroussin Date: Tue, 15 Apr 2014 17:00:36 +0000 (UTC) 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 X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Apr 2014 17:00:36 -0000 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 + #include ++#include + #include + #include + #include +@@ -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); +