summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2015-10-27 20:26:44 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2015-10-27 20:26:44 +0000
commit6f0a6fcdb97c4a945e1491828d9d8314884f08ef (patch)
treedfca261088ac886001e98ca4b39447deb698f033
parentd8396a4b4faebac030b319daf9edf139c4ecf40d (diff)
downloads6-rc-6f0a6fcdb97c4a945e1491828d9d8314884f08ef.tar.xz
- appease gcc, which still doesn't understand data flow across gotos, in s6rc_lock
- document proper service stubbing for OpenRC
-rw-r--r--doc/faq.html8
-rw-r--r--src/libs6rc/s6rc_lock.c2
2 files changed, 7 insertions, 3 deletions
diff --git a/doc/faq.html b/doc/faq.html
index 9abf75b..b54b79a 100644
--- a/doc/faq.html
+++ b/doc/faq.html
@@ -190,8 +190,12 @@ create a service definition directory named <em>foo</em>:
<li> <tt><em>foo</em>/type</tt> contains <tt>oneshot</tt> </li>
<li> <tt><em>foo</em>/dependencies</tt> contains the list of
dependencies for <em>foo</em> </li>
- <li> <tt><em>foo</em>/up</tt> contains <tt>/etc/init.d/<em>foo</em> start</tt> </li>
- <li> <tt><em>foo</em>/down</tt> contains <tt>/etc/init.d/<em>foo</em> stop</tt> </li>
+ <li> <tt><em>foo</em>/up</tt> contains <tt>/etc/init.d/<em>foo</em> start</tt>
+if you're using sysv-rc, or <tt>rc-service start foo -D -q</tt> if you're
+using OpenRC </li>
+ <li> <tt><em>foo</em>/down</tt> contains <tt>/etc/init.d/<em>foo</em> stop</tt>
+if you're using sysv-rc, or <tt>rc-service stop foo -D -q</tt> if you're
+using OpenRC </li>
</ul>
<p>
diff --git a/src/libs6rc/s6rc_lock.c b/src/libs6rc/s6rc_lock.c
index 234df9f..75a22be 100644
--- a/src/libs6rc/s6rc_lock.c
+++ b/src/libs6rc/s6rc_lock.c
@@ -8,7 +8,7 @@
int s6rc_lock (char const *live, int lwhat, int *llfd, char const *compiled, int cwhat, int *ccfd)
{
- int e ;
+ int e = 0 ;
int lfd = -1, cfd = -1 ;
if (lwhat)