[CRIU] [PATCH 06/12] parasite: Create a control socket

Cyrill Gorcunov gorcunov at openvz.org
Fri Mar 1 14:08:17 EST 2013


On Fri, Mar 01, 2013 at 10:48:21PM +0400, Pavel Emelyanov wrote:
> 
> > @@ -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?

Because it become a less clear what is socket used for.
control socket serves one purpose -- commands, nothing
else, transport socket moves data to and from, lets not
mess it.


More information about the CRIU mailing list