summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorGerrit Pape <pape@smarden.org>2005-07-23 15:59:01 +0000
committerGerrit Pape <pape@smarden.org>2005-07-23 15:59:01 +0000
commit1196258c17ff7c29d0bbaabd84d711cb28eefd1b (patch)
tree6e9e160757a82845b037ffad4979423664dab4aa /src
parentd9a10784b08a0289e028623cbcdf57a94fbb5925 (diff)
downloadrunit-1196258c17ff7c29d0bbaabd84d711cb28eefd1b.tar.gz
runit-1196258c17ff7c29d0bbaabd84d711cb28eefd1b.tar.xz
runit-1196258c17ff7c29d0bbaabd84d711cb28eefd1b.zip
minor.
Diffstat (limited to 'src')
-rw-r--r--src/sv.c2
-rwxr-xr-xsrc/sv.check2
-rw-r--r--src/sv.dist4
3 files changed, 7 insertions, 1 deletions
diff --git a/src/sv.c b/src/sv.c
index 51047d7..04f945d 100644
--- a/src/sv.c
+++ b/src/sv.c
@@ -322,5 +322,5 @@ int main(int argc, char **argv) {
       usleep(USLEEPDELAY);
       taia_now(&tnow);
     }
-  return(rc);
+  return(rc > 99 ? 99 : rc);
 }
diff --git a/src/sv.check b/src/sv.check
index a778719..d3c277c 100755
--- a/src/sv.check
+++ b/src/sv.check
@@ -4,6 +4,8 @@ trap 'rm -rf "${ctmp}"' EXIT
 
 sv
 echo $?
+sv -V
+echo $?
 
 mkdir "${ctmp}"
 cat >"${ctmp}"/run <<-\EOT
diff --git a/src/sv.dist b/src/sv.dist
index f64a414..a496983 100644
--- a/src/sv.dist
+++ b/src/sv.dist
@@ -1,6 +1,10 @@
 usage: sv [-v] [-w sec] action service ...
 
 100
+$Id$
+usage: sv [-v] [-w sec] action service ...
+
+100
 starting
 0
 down