Re: [lxc-devel] [PATCH] serialize multiple threads doing lxcapi_start()

2013-05-13 Thread Serge Hallyn
Quoting Dwight Engen (dwight.en...@oracle.com): > The problem is that the fd table is shared between threads and if a thread > forks() while another thread has an open fd to the monitor, the duped fd > in the fork()ed child will not get closed, thus causing monitord to stay > around since it thinks

[lxc-devel] [PATCH] serialize multiple threads doing lxcapi_start()

2013-05-13 Thread Dwight Engen
The problem is that the fd table is shared between threads and if a thread forks() while another thread has an open fd to the monitor, the duped fd in the fork()ed child will not get closed, thus causing monitord to stay around since it thinks it still has a client. This only happened when calling