[lxc-users] lxc_monitor exiting, but not cleaning monitor-fifo?

Serge Hallyn serge.hallyn at ubuntu.com
Wed Apr 2 15:23:52 UTC 2014


Quoting Dwight Engen (dwight.engen at oracle.com):
> On Tue, 1 Apr 2014 13:01:36 -0500
> Serge Hallyn <serge.hallyn at ubuntu.com> wrote:
> 
> > As an alternative to doing pidfiles, how about following the way
> > that lxcapi_create does it with fcntl(fd, F_SETLKW?  (see
> > create_partial() and ongoing_create()?
> > 
> > Then if the monitor exited without being able to clean up, we can
> > detect it and clean up.
> 
> Hey Serge, thats a good idea. I think F_SETLKW could be used instead if
> we're worried about the kill(pid, 0) and pid reuse. Is that the case
> you're worried about?

And I just don't want all that pidfile code in there if we don't
need it.  Is there any advantage to using a pidfile?


More information about the lxc-users mailing list