[lxc-devel] question about /sys/fs/cgroup/cgmanager

Stéphane Graber stgraber at ubuntu.com
Sat Nov 7 16:17:54 UTC 2015


On Sat, Nov 07, 2015 at 01:14:07PM +0100, Dietmar Maurer wrote:
> > The reason we did it this way instead of just binding in the sock itself is
> > because if cgmanager restarts, this allows all containers to continue and
> > just pick up the new socket. 
> 
> But an AF_UNIX socket is just an inode inside the file system? So there is no
> need to delete the socket when we restart cgmanager. Instead, cgmanager can
> simply use the existing socket? 

No, you cannot bind to an existing socket, even if nothing's bound to it
right now.

You must delete the socket and let bind() create it again for you.

-- 
Stéphane Graber
Ubuntu developer
http://www.ubuntu.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20151107/7bb5ec78/attachment.sig>


More information about the lxc-devel mailing list