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

Attachment: signature.asc
Description: Digital signature

_______________________________________________
lxc-devel mailing list
lxc-devel@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to