1 |
commit: c094c75f34776ccae2a89dcb8b6c19d7a8155f56 |
2 |
Author: William Hubbs <w.d.hubbs <AT> gmail <DOT> com> |
3 |
AuthorDate: Mon Oct 24 17:39:14 2016 +0000 |
4 |
Commit: William Hubbs <williamh <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Nov 3 18:20:48 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/openrc.git/commit/?id=c094c75f |
7 |
|
8 |
src/rc/rc-misc.c: report error if call to flock() fails |
9 |
|
10 |
X-Gentoo-Bug: 597390 |
11 |
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=597390 |
12 |
|
13 |
src/rc/rc-misc.c | 1 + |
14 |
1 file changed, 1 insertion(+) |
15 |
|
16 |
diff --git a/src/rc/rc-misc.c b/src/rc/rc-misc.c |
17 |
index 250b369..8afff0a 100644 |
18 |
--- a/src/rc/rc-misc.c |
19 |
+++ b/src/rc/rc-misc.c |
20 |
@@ -228,6 +228,7 @@ svc_lock(const char *applet) |
21 |
if (fd == -1) |
22 |
return -1; |
23 |
if (flock(fd, LOCK_EX | LOCK_NB) == -1) { |
24 |
+ eerror("Call to flock failed: %s", strerror(errno)); |
25 |
close(fd); |
26 |
return -1; |
27 |
} |