commit:     9d5f321acf4d090cb3a79e23e06af8d1add8fe43
Author:     William Hubbs <w.d.hubbs <AT> gmail <DOT> com>
AuthorDate: Mon Oct 24 17:39:14 2016 +0000
Commit:     William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Mon Oct 24 17:39:14 2016 +0000
URL:        https://gitweb.gentoo.org/proj/openrc.git/commit/?id=9d5f321a

src/rc/rc-misc.c: report error if call to flock() fails

X-Gentoo-Bug: 597390
X-Gentoo-Bug: 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;
        }

Reply via email to