Skip to content

Commit

Permalink
subproc: better log messages
Browse files Browse the repository at this point in the history
  • Loading branch information
robertswiecki committed Jun 3, 2018
1 parent c4fca33 commit fc0e98b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions subproc.cc
Original file line number Diff line number Diff line change
Expand Up @@ -368,15 +368,15 @@ void killAll(nsjconf_t* nsjconf) {

static bool initParent(nsjconf_t* nsjconf, pid_t pid, int pipefd) {
if (!net::initNsFromParent(nsjconf, pid)) {
LOG_E("Couldn't create and put MACVTAP interface into NS of PID '%d'", pid);
LOG_E("Couldn't initialize net namespace for pid '%d'", pid);
return false;
}
if (!cgroup::initNsFromParent(nsjconf, pid)) {
LOG_E("Couldn't initialize cgroup user namespace");
LOG_E("Couldn't initialize cgroup user namespace for pid '%d'", pid);
exit(0xff);
}
if (!user::initNsFromParent(nsjconf, pid)) {
LOG_E("Couldn't initialize user namespaces for pid %d", pid);
LOG_E("Couldn't initialize user namespace for pid %d", pid);
return false;
}
if (util::writeToFd(pipefd, &kSubprocDoneChar, sizeof(kSubprocDoneChar)) !=
Expand Down

0 comments on commit fc0e98b

Please sign in to comment.