aboutsummaryrefslogtreecommitdiff
path: root/src/rc
diff options
context:
space:
mode:
authorWilliam Hubbs <w.d.hubbs@gmail.com>2016-10-24 12:39:14 -0500
committerWilliam Hubbs <w.d.hubbs@gmail.com>2016-10-24 12:47:49 -0500
commit4fd144c0a6526963c70f18cb34a65354c2f0a48c (patch)
tree24e746259aac073fcefac2b8e7a9e9599ae7772d /src/rc
parentc44c904a61418189c989e978b0237e5b161263ef (diff)
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
Diffstat (limited to 'src/rc')
-rw-r--r--src/rc/rc-misc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rc/rc-misc.c b/src/rc/rc-misc.c
index 250b3695..8afff0a2 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;
}