diff options
| author | Andrei Belov <defan@nginx.com> | 2020-10-08 19:19:31 +0300 |
|---|---|---|
| committer | Andrei Belov <defan@nginx.com> | 2020-10-08 19:19:31 +0300 |
| commit | d586ac9fdc4a86c142b06a75dde4cdacad5b52f6 (patch) | |
| tree | 9817282396f9d2cf5333050e4b5bf807d3617e40 /src/nxt_main_process.c | |
| parent | 9be35d9b7418c041e5177f273c20f0fd2d3f00ad (diff) | |
| parent | ad516735a65fe109773b60e26214a071411f1734 (diff) | |
| download | unit-1.20.0-1.tar.gz unit-1.20.0-1.tar.bz2 | |
Merged with the default branch.1.20.0-1
Diffstat (limited to '')
| -rw-r--r-- | src/nxt_main_process.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/nxt_main_process.c b/src/nxt_main_process.c index 48eb2abb..d2edab1d 100644 --- a/src/nxt_main_process.c +++ b/src/nxt_main_process.c @@ -191,6 +191,12 @@ static nxt_conf_map_t nxt_python_app_conf[] = { NXT_CONF_MAP_STR, offsetof(nxt_common_app_conf_t, u.python.module), }, + + { + nxt_string("callable"), + NXT_CONF_MAP_CSTRZ, + offsetof(nxt_common_app_conf_t, u.python.callable), + }, }; @@ -878,11 +884,9 @@ nxt_main_cleanup_process(nxt_task_t *task, nxt_pid_t pid) return; } -#if (NXT_HAVE_ISOLATION_ROOTFS) - if (process->isolation.rootfs != NULL && process->isolation.mounts) { - (void) nxt_process_unmount_all(task, process); + if (process->isolation.cleanup != NULL) { + process->isolation.cleanup(task, process); } -#endif name = process->name; stream = process->stream; @@ -1292,6 +1296,8 @@ nxt_main_port_modules_handler(nxt_task_t *task, nxt_port_recv_msg_t *msg) goto fail; } + mnt->builtin = 1; + ret = nxt_conf_map_object(rt->mem_pool, value, nxt_app_lang_mounts_map, nxt_nitems(nxt_app_lang_mounts_map), mnt); |
