supervise-daemon: allow --respawn-max to be zero
This commit is contained in:
parent
44f5a72d1a
commit
54780a4582
@ -835,7 +835,7 @@ int main(int argc, char **argv)
|
|||||||
|
|
||||||
case 'm': /* --respawn-max count */
|
case 'm': /* --respawn-max count */
|
||||||
n = sscanf(optarg, "%d", &respawn_max);
|
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);
|
eerrorx("Invalid respawn-max value '%s'", optarg);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user