[CRIU] [PATCH 06/12] parasite: Create a control socket
Pavel Emelyanov
xemul at parallels.com
Fri Mar 1 13:48:21 EST 2013
On 02/28/2013 07:35 PM, Cyrill Gorcunov wrote:
>
> In daemon mode we will be talking to parasite via
> socket commands, this patch creates a control socket
> on both side.
>
> Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
> ---
> include/parasite-syscall.h | 1 +
> include/parasite.h | 6 ++++
> parasite-syscall.c | 83 +++++++++++++++++++++++++++++++---------------
> pie/parasite.c | 29 ++++++++++++++++
> 4 files changed, 93 insertions(+), 26 deletions(-)
>
> @@ -20,6 +20,7 @@ struct parasite_ctl {
> unsigned int *addr_cmd; /* addr for command */
> void *addr_args; /* address for arguments */
> int tsock; /* transport socket for transfering fds */
> + int ctlsock; /* control socket for commands */
Why is it bad to use tsock for that purposes?
> };
>
More information about the CRIU
mailing list