diff options
author | Tiago Natel de Moura <t.nateldemoura@f5.com> | 2020-08-20 15:44:29 +0100 |
---|---|---|
committer | Tiago Natel de Moura <t.nateldemoura@f5.com> | 2020-08-20 15:44:29 +0100 |
commit | 4ad8c5b8989d2772a2f68f9386bf31036e39ccdd (patch) | |
tree | 01b252fdf653970537cdd07ca939a5e79c5a53f6 /src/nxt_runtime.c | |
parent | a8a7eeb1fc7aada17d0d8fe8e15d325525986937 (diff) | |
download | unit-4ad8c5b8989d2772a2f68f9386bf31036e39ccdd.tar.gz unit-4ad8c5b8989d2772a2f68f9386bf31036e39ccdd.tar.bz2 |
Isolation: mount tmpfs by default.
Diffstat (limited to 'src/nxt_runtime.c')
-rw-r--r-- | src/nxt_runtime.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/nxt_runtime.c b/src/nxt_runtime.c index 435276a0..44970b34 100644 --- a/src/nxt_runtime.c +++ b/src/nxt_runtime.c @@ -84,7 +84,11 @@ nxt_runtime_create(nxt_task_t *task) lang->version = (u_char *) ""; lang->file = NULL; lang->module = &nxt_external_module; - lang->mounts = NULL; + + lang->mounts = nxt_array_create(mp, 1, sizeof(nxt_fs_mount_t)); + if (nxt_slow_path(lang->mounts == NULL)) { + goto fail; + } listen_sockets = nxt_array_create(mp, 1, sizeof(nxt_listen_socket_t)); if (nxt_slow_path(listen_sockets == NULL)) { |