diff options
Diffstat (limited to 'winsup/cygwin/environ.cc')
-rw-r--r-- | winsup/cygwin/environ.cc | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/winsup/cygwin/environ.cc b/winsup/cygwin/environ.cc index eb99d2b51..23d0993a7 100644 --- a/winsup/cygwin/environ.cc +++ b/winsup/cygwin/environ.cc @@ -39,6 +39,7 @@ static bool envcache = true; #ifdef USE_SERVER extern bool allow_server; #endif +extern int fork_retry; static char **lastenviron; @@ -515,7 +516,13 @@ subauth_id_init (const char *buf) static void set_chunksize (const char *buf) { - wincap.set_chunksize (strtol (buf, NULL, 0)); + wincap.set_chunksize (strtoul (buf, NULL, 0)); +} + +static void +set_fork_retry (const char *buf) +{ + fork_retry = strtoul (buf, NULL, 0); } static void @@ -587,6 +594,7 @@ static struct parse_thing {"tty", {NULL}, set_process_state, NULL, {{0}, {PID_USETTY}}}, {"winsymlinks", {&allow_winsymlinks}, justset, NULL, {{false}, {true}}}, {"transparent_exe", {&transparent_exe}, justset, NULL, {{false}, {true}}}, + {"fork_retry", {func: set_fork_retry}, isfunc, NULL, {{0}, {5}}}, {NULL, {0}, justset, 0, {{0}, {0}}} }; |