On 05/18/2011 06:17 PM, [email protected] wrote:
> Yeah, it is an abstract socket, but what is it for?
This af_unix socket is used for:
(1) sending command to lxc-start (the supervisor of the container's init)
- 'stop': used by lxc-stop to kill the container, the lxc-stop exits
when the af_unix connection is closed, so we have the guarantee the
'stop' will return after the container dies, so we can call lxc-start
right after lxc-stop.
- 'pid' : get the real pid of the init process
- 'state' : get the state of the container which is monitored by
lxc-start
(2) get a tty file descriptor using the fd passing af_unix mechanism, so
lxc-console can work.
------------------------------------------------------------------------------
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its
next-generation tools to help Windows* and Linux* C/C++ and Fortran
developers boost performance applications - including clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Lxc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lxc-users