patch-native_arguments.c 1.15 KB
Newer Older
ale's avatar
ale committed
1
--- native/arguments.c.orig	2019-09-04 15:44:04 UTC
ale's avatar
ale committed
2
+++ native/arguments.c
ale's avatar
ale committed
3
4
5
6
7
8
9
10
11
12
@@ -157,7 +157,7 @@ static arg_data *parse(int argc, char *argv[])
     args->help = false;                /* Don't display help */
     args->chck = false;                /* Don't do a check-only startup */
     args->stop = false;                /* Stop a running jsvc */
-    args->wait = 0;                    /* Wait until jsvc has started the JVM */
+    args->wait = 10;                   /* Wait until jsvc has started the JVM */
     args->restarts = -1;               /* Infinite restarts by default */
     args->install = false;             /* Don't install as a service */
     args->remove = false;              /* Don't remove the installed service */
@@ -266,10 +266,6 @@ static arg_data *parse(int argc, char *argv[])
ale's avatar
ale committed
13
14
15
16
17
18
19
20
             temp = optional(argc, argv, x++);
             if (temp)
                 args->wait = atoi(temp);
-            if (args->wait < 10) {
-                log_error("Invalid wait time specified (min=10)");
-                return NULL;
-            }
         }
ale's avatar
ale committed
21
         else if (!strcmp(argv[x], "-restarts")) {
ale's avatar
ale committed
22
             temp = optional(argc, argv, x++);