mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-09 17:18:56 +00:00
attach_options: add log_fd argument
This will be used to log the output of attach to. Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
parent
08ea927039
commit
79bd76625d
@ -131,6 +131,9 @@ typedef struct lxc_attach_options_t {
|
||||
int stdout_fd; /*!< stdout file descriptor */
|
||||
int stderr_fd; /*!< stderr file descriptor */
|
||||
/**@}*/
|
||||
|
||||
/*! File descriptor to log output. */
|
||||
int log_fd;
|
||||
} lxc_attach_options_t;
|
||||
|
||||
/*! Default attach options to use */
|
||||
@ -145,7 +148,10 @@ typedef struct lxc_attach_options_t {
|
||||
/* .env_policy = */ LXC_ATTACH_KEEP_ENV, \
|
||||
/* .extra_env_vars = */ NULL, \
|
||||
/* .extra_keep_env = */ NULL, \
|
||||
/* .stdin_fd = */ 0, 1, 2 \
|
||||
/* .stdin_fd = */ 0, \
|
||||
/* .stdout_fd = */ 1, \
|
||||
/* .stderr_fd = */ 2, \
|
||||
/* .log_fd = */ -EBADF, \
|
||||
}
|
||||
|
||||
/*!
|
||||
|
Loading…
Reference in New Issue
Block a user