mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-15 12:06:12 +00:00
Merge pull request #2211 from tych0/usernsexec-init-log
usernsexec: init log fd
This commit is contained in:
commit
e3bc3b8645
@ -53,6 +53,8 @@
|
||||
#define MS_SLAVE (1 << 19)
|
||||
#endif
|
||||
|
||||
extern int lxc_log_fd;
|
||||
|
||||
int unshare(int flags);
|
||||
|
||||
static void usage(const char *name)
|
||||
@ -274,6 +276,8 @@ int main(int argc, char *argv[])
|
||||
int pipe1[2], /* child tells parent it has unshared */
|
||||
pipe2[2]; /* parent tells child it is mapped and may proceed */
|
||||
|
||||
lxc_log_fd = STDERR_FILENO;
|
||||
|
||||
memset(ttyname0, '\0', sizeof(ttyname0));
|
||||
memset(ttyname1, '\0', sizeof(ttyname1));
|
||||
memset(ttyname2, '\0', sizeof(ttyname2));
|
||||
|
Loading…
Reference in New Issue
Block a user