From 54780a45826f789f1291742eb2c99be369bfe64c Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Fri, 29 Mar 2019 14:09:08 -0500 Subject: [PATCH] supervise-daemon: allow --respawn-max to be zero --- src/rc/supervise-daemon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;