because that's what it does
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
return ret == 0;
}
-static inline bool enter_to_ns(struct lxc_container *c)
+static inline bool enter_net_ns(struct lxc_container *c)
{
pid_t pid = c->init_pid(c);
/* close the read-end of the pipe */
close(pipefd[0]);
- if (!enter_to_ns(c)) {
+ if (!enter_net_ns(c)) {
SYSERROR("failed to enter namespace");
goto out;
}
/* close the read-end of the pipe */
close(pipefd[0]);
- if (!enter_to_ns(c)) {
+ if (!enter_net_ns(c)) {
SYSERROR("failed to enter namespace");
goto out;
}
if (pid == 0) { // child
int ret = 0;
- if (!enter_to_ns(c)) {
+ if (!enter_net_ns(c)) {
ERROR("failed to enter namespace");
exit(-1);
}