subproc: debug log for unshare()
authorRobert Swiecki <robert@swiecki.net>
Fri, 16 Jul 2021 20:47:18 +0000 (22:47 +0200)
committerRobert Swiecki <robert@swiecki.net>
Fri, 16 Jul 2021 20:47:18 +0000 (22:47 +0200)
subproc.cc

index e573472508bf0d0db4913beec3c87d10a858248f..bb25ec336d53c1715abe6ca8ba6a1a4805fafdf5 100644 (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);
 
        if (nsjconf->mode == MODE_STANDALONE_EXECVE) {
+               LOG_D("unshare(flags: %s)", cloneFlagsToStr(flags).c_str());
                if (unshare(flags) == -1) {
                        PLOG_F("unshare(%s)", cloneFlagsToStr(flags).c_str());
                }