From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id D9FA4138A1A for ; Sat, 21 Feb 2015 18:06:47 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B43E7E08DA; Sat, 21 Feb 2015 18:06:46 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 36C0AE08DA for ; Sat, 21 Feb 2015 18:06:46 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 069943408D7 for ; Sat, 21 Feb 2015 18:06:45 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 87D7E12403 for ; Sat, 21 Feb 2015 18:06:43 +0000 (UTC) From: "Mike Frysinger" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Frysinger" Message-ID: <1424541618.de40ef688f60ccfaffaaf17bd250825d6372c9bc.vapier@gentoo> Subject: [gentoo-commits] proj/portage-utils:master commit in: libq/ X-VCS-Repository: proj/portage-utils X-VCS-Files: libq/xsystem.c X-VCS-Directories: libq/ X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger X-VCS-Revision: de40ef688f60ccfaffaaf17bd250825d6372c9bc X-VCS-Branch: master Date: Sat, 21 Feb 2015 18:06:43 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 2d3fb78b-fa19-40e3-91cf-c00d061edd4a X-Archives-Hash: e18414e3be3f2c9a3bfd67c7defcc17c commit: de40ef688f60ccfaffaaf17bd250825d6372c9bc Author: Mike Frysinger gentoo org> AuthorDate: Sat Feb 21 18:00:18 2015 +0000 Commit: Mike Frysinger gentoo org> CommitDate: Sat Feb 21 18:00:18 2015 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/portage-utils.git;a=commit;h=de40ef68 xsystembash: output error messages ourselves --- libq/xsystem.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/libq/xsystem.c b/libq/xsystem.c index e688c5d..199a1d2 100644 --- a/libq/xsystem.c +++ b/libq/xsystem.c @@ -27,11 +27,14 @@ static void xsystembash(const char *command) default: /* parent */ waitpid(p, &status, 0); - if (WIFEXITED(status)) { + if (WIFSIGNALED(status)) { + err("phase crashed with signal %i: %s", WTERMSIG(status), + strsignal(WTERMSIG(status))); + } else if (WIFEXITED(status)) { if (WEXITSTATUS(status) == 0) return; else - exit(WEXITSTATUS(status)); + err("phase exited %i", WEXITSTATUS(status)); } /* fall through */