aboutsummaryrefslogtreecommitdiff
path: root/src/rc
diff options
context:
space:
mode:
authorWilliam Hubbs <w.d.hubbs@gmail.com>2019-03-29 14:09:08 -0500
committerWilliam Hubbs <w.d.hubbs@gmail.com>2019-03-29 14:09:08 -0500
commit54780a45826f789f1291742eb2c99be369bfe64c (patch)
tree776d9636e43fe8f70ce2d3a7eb2482499ca19abd /src/rc
parent44f5a72d1aeb131cc2cb464a53809a5a8d90c46e (diff)
supervise-daemon: allow --respawn-max to be zero
Diffstat (limited to 'src/rc')
-rw-r--r--src/rc/supervise-daemon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rc/supervise-daemon.c b/src/rc/supervise-daemon.c
index aaa39397..b754a42b 100644
--- a/src/rc/supervise-daemon.c
+++ b/src/rc/supervise-daemon.c
@@ -835,7 +835,7 @@ int main(int argc, char **argv)
case 'm': /* --respawn-max count */
n = sscanf(optarg, "%d", &respawn_max);
- if (n != 1 || respawn_max < 1)
+ if (n != 1 || respawn_max < 0)
eerrorx("Invalid respawn-max value '%s'", optarg);
break;