subproc: debug log for unshare()

This commit is contained in:
Robert Swiecki 2021-07-16 22:47:18 +02:00
parent 62879de5de
commit 737b300609

View File

@ -439,6 +439,7 @@ pid_t runChild(nsjconf_t* nsjconf, int netfd, int fd_in, int fd_out, int fd_err)
flags |= (nsjconf->clone_newtime ? CLONE_NEWTIME : 0); flags |= (nsjconf->clone_newtime ? CLONE_NEWTIME : 0);
if (nsjconf->mode == MODE_STANDALONE_EXECVE) { if (nsjconf->mode == MODE_STANDALONE_EXECVE) {
LOG_D("unshare(flags: %s)", cloneFlagsToStr(flags).c_str());
if (unshare(flags) == -1) { if (unshare(flags) == -1) {
PLOG_F("unshare(%s)", cloneFlagsToStr(flags).c_str()); PLOG_F("unshare(%s)", cloneFlagsToStr(flags).c_str());
} }