supervise-daemon: allow --respawn-max to be zero

This commit is contained in:
William Hubbs 2019-03-29 14:09:08 -05:00
parent 44f5a72d1a
commit 54780a4582

View File

@ -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;