[lxc-users] lxc_monitor exiting, but not cleaning monitor-fifo?
Dwight Engen
dwight.engen at oracle.com
Wed Apr 2 17:08:40 UTC 2014
On Wed, 2 Apr 2014 10:23:52 -0500
Serge Hallyn <serge.hallyn at ubuntu.com> wrote:
> 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?
Nope, I agree I don't think there is an advantage to a pidfile. I'll
post a patch over on devel with the SETLK approach.
More information about the lxc-users
mailing list