summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_main_process.c
diff options
context:
space:
mode:
authorTiago Natel de Moura <t.nateldemoura@f5.com>2020-08-20 15:22:58 +0100
committerTiago Natel de Moura <t.nateldemoura@f5.com>2020-08-20 15:22:58 +0100
commita8a7eeb1fc7aada17d0d8fe8e15d325525986937 (patch)
treeeb438829169ed66ced4c7c2a793a19a04fa2bc59 /src/nxt_main_process.c
parent9bf6efc55ac9678ad386fd1a9d420a3b75e9ab70 (diff)
downloadunit-a8a7eeb1fc7aada17d0d8fe8e15d325525986937.tar.gz
unit-a8a7eeb1fc7aada17d0d8fe8e15d325525986937.tar.bz2
Moved isolation related code to "nxt_isolation.c".
Diffstat (limited to '')
-rw-r--r--src/nxt_main_process.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/nxt_main_process.c b/src/nxt_main_process.c
index 48eb2abb..a7b84b73 100644
--- a/src/nxt_main_process.c
+++ b/src/nxt_main_process.c
@@ -878,11 +878,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;