aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_init.c
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2013-02-25 16:54:54 +0100
committerLukas Larsson <[email protected]>2013-02-25 16:54:54 +0100
commit8df6e3868c742be5763ed4ee57a928bfac56616d (patch)
treef9acef19c5e5d2fbd36b410c62080c48c0824631 /erts/emulator/beam/erl_init.c
parentdf465d70c5e7833a393fea02eabf477bbe6c542b (diff)
downloadotp-8df6e3868c742be5763ed4ee57a928bfac56616d.tar.gz
otp-8df6e3868c742be5763ed4ee57a928bfac56616d.tar.bz2
otp-8df6e3868c742be5763ed4ee57a928bfac56616d.zip
Undo removal of ERL_MAX_PORTS os variable
Diffstat (limited to 'erts/emulator/beam/erl_init.c')
-rw-r--r--erts/emulator/beam/erl_init.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/erts/emulator/beam/erl_init.c b/erts/emulator/beam/erl_init.c
index 83853dcd43..e7e4030900 100644
--- a/erts/emulator/beam/erl_init.c
+++ b/erts/emulator/beam/erl_init.c
@@ -935,6 +935,12 @@ erl_start(int argc, char **argv)
(erts_aint32_t) max_gen_gcs);
}
+ envbufsz = sizeof(envbuf);
+ if (erts_sys_getenv_raw("ERL_MAX_PORTS", envbuf, &envbufsz) == 0) {
+ port_tab_sz = atoi(envbuf);
+ port_tab_sz_ignore_files = 1;
+ }
+
#if (defined(__APPLE__) && defined(__MACH__)) || defined(__DARWIN__)
/*
* The default stack size on MacOS X is too small for pcre.