From 543c1405653c48d23e19d03d7c62e9534fc9a110 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Thu, 23 Mar 2017 14:34:16 +0000 Subject: Don't wait on locks by default (fail instead); add a -b option to get the waiting behaviour Also fix a few types in s6-rc-compile (unsigned int -> uint32_t for avltree indices) --- doc/s6-rc-bundle.html | 11 +++++-- doc/s6-rc-compile.html | 7 ++++- doc/s6-rc-db.html | 27 ++++++++++------- doc/s6-rc-fdholder-filler.html | 7 +++-- doc/s6-rc-init.html | 7 ++++- doc/s6-rc-oneshot-run.html | 7 ++++- doc/s6-rc-update.html | 7 ++++- doc/s6-rc.html | 23 +++++++++++---- src/include/s6-rc/s6rc-utils.h | 2 +- src/libs6rc/s6rc_lock.c | 16 ++++++++-- src/s6-rc/s6-rc-bundle.c | 8 +++-- src/s6-rc/s6-rc-compile.c | 66 +++++++++++++++++++++--------------------- src/s6-rc/s6-rc-db.c | 8 +++-- src/s6-rc/s6-rc-init.c | 8 +++-- src/s6-rc/s6-rc-oneshot-run.c | 8 +++-- src/s6-rc/s6-rc-update.c | 10 ++++--- src/s6-rc/s6-rc.c | 9 +++--- 17 files changed, 148 insertions(+), 83 deletions(-) diff --git a/doc/s6-rc-bundle.html b/doc/s6-rc-bundle.html index 7647006..4bae71a 100644 --- a/doc/s6-rc-bundle.html +++ b/doc/s6-rc-bundle.html @@ -36,9 +36,9 @@ operation.
      s6-rc-bundle help
-     s6-rc-bundle [ -f ] [ -l live ] [ -c compiled ] add bundlename contents...
-     s6-rc-bundle [ -f ] [ -l live ] [ -c compiled ] delete bundlenames...
-     s6-rc-bundle [ -f ] [ -l live ] [ -c compiled ] multiple args...
+     s6-rc-bundle [ -f ] [ -l live ] [ -c compiled ] [ -b ] add bundlename contents...
+     s6-rc-bundle [ -f ] [ -l live ] [ -c compiled ] [ -b ] delete bundlenames...
+     s6-rc-bundle [ -f ] [ -l live ] [ -c compiled ] [ -b ] multiple args...
 

Exit codes

diff --git a/doc/s6-rc-compile.html b/doc/s6-rc-compile.html index 61f6dd2..cfacde1 100644 --- a/doc/s6-rc-compile.html +++ b/doc/s6-rc-compile.html @@ -36,7 +36,7 @@ the current service database via

Interface

-     s6-rc-compile [ -v verbosity ] [ -u uids ] [ -g gids ] [ -h fdhuser ] compiled source...
+     s6-rc-compile [ -v verbosity ] [ -u uids ] [ -g gids ] [ -h fdhuser ]  [ -b ] compiled source...
 

diff --git a/doc/s6-rc-db.html b/doc/s6-rc-db.html index a9d8b9d..5c664f5 100644 --- a/doc/s6-rc-db.html +++ b/doc/s6-rc-db.html @@ -37,17 +37,17 @@ operation.

      s6-rc-db help
-     s6-rc-db [ -l live ] [ -c compiled ] check
-     s6-rc-db [ -l live ] [ -c compiled ] list all|services|oneshots|longruns|bundles
-     s6-rc-db [ -l live ] [ -c compiled ] type servicename
-     s6-rc-db [ -l live ] [ -c compiled ] [ -u | -d ] timeout atomicname
-     s6-rc-db [ -l live ] [ -c compiled ] contents bundlename
-     s6-rc-db [ -l live ] [ -c compiled ] [ -u | -d ] dependencies servicename
-     s6-rc-db [ -l live ] [ -c compiled ] pipeline longrunname
-     s6-rc-db [ -l live ] [ -c compiled ] [ -u | -d ] script oneshotname
-     s6-rc-db [ -l live ] [ -c compiled ] flags atomicname
-     s6-rc-db [ -l live ] [ -c compiled ] atomics servicename...
-     s6-rc-db [ -l live ] [ -c compiled ] [ -u | -d ] all-dependencies servicename...
+     s6-rc-db [ -l live ] [ -c compiled ] [ -b ] check
+     s6-rc-db [ -l live ] [ -c compiled ] [ -b ] list all|services|oneshots|longruns|bundles
+     s6-rc-db [ -l live ] [ -c compiled ] [ -b ] type servicename
+     s6-rc-db [ -l live ] [ -c compiled ] [ -b ] [ -u | -d ] timeout atomicname
+     s6-rc-db [ -l live ] [ -c compiled ] [ -b ] contents bundlename
+     s6-rc-db [ -l live ] [ -c compiled ] [ -b ] [ -u | -d ] dependencies servicename
+     s6-rc-db [ -l live ] [ -c compiled ] [ -b ] pipeline longrunname
+     s6-rc-db [ -l live ] [ -c compiled ] [ -b ] [ -u | -d ] script oneshotname
+     s6-rc-db [ -l live ] [ -c compiled ] [ -b ] flags atomicname
+     s6-rc-db [ -l live ] [ -c compiled ] [ -b ] atomics servicename...
+     s6-rc-db [ -l live ] [ -c compiled ] [ -b ] [ -u | -d ] all-dependencies servicename...
 

Exit codes

diff --git a/doc/s6-rc-fdholder-filler.html b/doc/s6-rc-fdholder-filler.html index 83132fd..a835663 100644 --- a/doc/s6-rc-fdholder-filler.html +++ b/doc/s6-rc-fdholder-filler.html @@ -34,7 +34,7 @@ in internal scripts created by

Interface

-     s6-rc-fdholder-filler [ -1 ] [ -t timeout ] longrunnames...
+     s6-rc-fdholder-filler [ -1 ] [ -t timeout ] < longrunnamesfile