From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 84D1D138D27 for ; Mon, 24 Oct 2016 17:48:24 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 91B93E0979; Mon, 24 Oct 2016 17:48:20 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7878BE0979 for ; Mon, 24 Oct 2016 17:48:20 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5D896341494 for ; Mon, 24 Oct 2016 17:48:19 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 2E127308 for ; Mon, 24 Oct 2016 17:48:18 +0000 (UTC) From: "William Hubbs" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "William Hubbs" Message-ID: <1477331269.4fd144c0a6526963c70f18cb34a65354c2f0a48c.williamh@OpenRC> Subject: [gentoo-commits] proj/openrc:master commit in: src/rc/ X-VCS-Repository: proj/openrc X-VCS-Files: src/rc/rc-misc.c X-VCS-Directories: src/rc/ X-VCS-Committer: williamh X-VCS-Committer-Name: William Hubbs X-VCS-Revision: 4fd144c0a6526963c70f18cb34a65354c2f0a48c X-VCS-Branch: master Date: Mon, 24 Oct 2016 17:48:18 +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: 0f898b6d-29d1-4190-8cfc-dd4295d159e0 X-Archives-Hash: 1269d78a82c5ab28c3b903022078735e commit: 4fd144c0a6526963c70f18cb34a65354c2f0a48c Author: William Hubbs gmail com> AuthorDate: Mon Oct 24 17:39:14 2016 +0000 Commit: William Hubbs gentoo org> CommitDate: Mon Oct 24 17:47:49 2016 +0000 URL: https://gitweb.gentoo.org/proj/openrc.git/commit/?id=4fd144c0 src/rc/rc-misc.c: report error if call to flock() fails X-Gentoo-Bug: 597390 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=597390 src/rc/rc-misc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/rc/rc-misc.c b/src/rc/rc-misc.c index 250b369..8afff0a 100644 --- a/src/rc/rc-misc.c +++ b/src/rc/rc-misc.c @@ -228,6 +228,7 @@ svc_lock(const char *applet) if (fd == -1) return -1; if (flock(fd, LOCK_EX | LOCK_NB) == -1) { + eerror("Call to flock failed: %s", strerror(errno)); close(fd); return -1; }