summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_process.c
diff options
context:
space:
mode:
authorTiago Natel de Moura <t.nateldemoura@f5.com>2020-06-23 12:11:27 +0100
committerTiago Natel de Moura <t.nateldemoura@f5.com>2020-06-23 12:11:27 +0100
commitf8ba5d6c0093090e81819481e523af5fd27ab1e3 (patch)
tree51958e8f811621f507162f88be0da0fe045be992 /src/nxt_process.c
parent0326cefef518acc053718063019189b21dc26d32 (diff)
downloadunit-f8ba5d6c0093090e81819481e523af5fd27ab1e3.tar.gz
unit-f8ba5d6c0093090e81819481e523af5fd27ab1e3.tar.bz2
Isolation: fixed build when features aren't detected.
Diffstat (limited to '')
-rw-r--r--src/nxt_process.c16
1 files changed, 4 insertions, 12 deletions
diff --git a/src/nxt_process.c b/src/nxt_process.c
index c4c44d14..215c529c 100644
--- a/src/nxt_process.c
+++ b/src/nxt_process.c
@@ -35,17 +35,14 @@ static void nxt_process_created_error(nxt_task_t *task,
#if (NXT_HAVE_ISOLATION_ROOTFS)
static nxt_int_t nxt_process_chroot(nxt_task_t *task, const char *path);
-#endif
-#if (NXT_HAVE_PIVOT_ROOT)
+#if (NXT_HAVE_PIVOT_ROOT) && (NXT_HAVE_CLONE_NEWNS)
static nxt_int_t nxt_process_pivot_root(nxt_task_t *task, const char *rootfs);
static nxt_int_t nxt_process_private_mount(nxt_task_t *task,
const char *rootfs);
-#endif
-
-#if (NXT_HAVE_PIVOT_ROOT)
static int nxt_pivot_root(const char *new_root, const char *old_root);
#endif
+#endif
/* A cached process pid. */
nxt_pid_t nxt_pid;
@@ -590,11 +587,6 @@ nxt_process_change_root(nxt_task_t *task, nxt_process_t *process)
#endif
-#endif
-
-
-#if (NXT_HAVE_ISOLATION_ROOTFS)
-
static nxt_int_t
nxt_process_chroot(nxt_task_t *task, const char *path)
{
@@ -625,8 +617,6 @@ nxt_process_unmount_all(nxt_task_t *task, nxt_process_t *process)
}
}
-#endif
-
#if (NXT_HAVE_PIVOT_ROOT) && (NXT_HAVE_CLONE_NEWNS)
@@ -856,6 +846,8 @@ nxt_pivot_root(const char *new_root, const char *old_root)
#endif
+#endif
+
static nxt_int_t
nxt_process_send_ready(nxt_task_t *task, nxt_process_t *process)