commit 5ce3a368f673c5ffdb844f3c80f3be7590047e6a
parent 2acadc48c7c22a3fc73fbf3f5f1370116ee93724
Author: Gerrit Pape <pape@smarden.org>
Date: Sat, 23 Jul 2005 15:59:01 +0000
minor.
Diffstat:
3 files changed, 7 insertions(+), 1 deletion(-)
diff --git 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
@@ -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
@@ -1,6 +1,10 @@
usage: sv [-v] [-w sec] action service ...
100
+$Id$
+usage: sv [-v] [-w sec] action service ...
+
+100
starting
0
down