On Mon, Sep 30, 2013 at 12:58:47PM -0500, Serge Hallyn wrote: > Quoting Stéphane Graber (stgra...@ubuntu.com): > > On Mon, Sep 30, 2013 at 09:53:56AM -0400, Dwight Engen wrote: > > > On Fri, 27 Sep 2013 21:01:07 -0500 > > > Serge Hallyn <serge.hal...@ubuntu.com> wrote: > > > > > > > This is an api function which will return false if the container > > > > is running, and the caller may not talk to its monitor over its > > > > command socket. Otherwise - if the container is not running, or > > > > the caller may access it - it returns true. > > > > > > > > We can use this in several tools early on to prevent the segvs > > > > etc which we currently get. > > > > > > > > Signed-off-by: Serge Hallyn <serge.hal...@ubuntu.com> > > > > > > Acked-by: Dwight Engen <dwight.en...@oracle.com> > > > > Hi Serge, > > > > So I'm not terribly familiar with the control code since the monitord > > changes, will that code work properly if the container socket is already > > in use (say by someone running lxc-wait on the container)? > > > > I just want to make sure we won't have a possible hang when calling that > > function. > > Yup, good thinking - but it does appear to work correctly. I got the > same results doing lxc-test-may-control as root and non-root when I > had an lxc-wait -n u1 -s STOPPED going as when I didn't. > > -serge
Thanks for confirming! Acked-by: Stéphane Graber <stgra...@ubuntu.com> -- Stéphane Graber Ubuntu developer http://www.ubuntu.com
signature.asc
Description: Digital signature
------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk
_______________________________________________ Lxc-devel mailing list Lxc-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-devel