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

Dwight Engen dwight.engen at oracle.com
Wed Apr 2 14:59:21 UTC 2014


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?


More information about the lxc-users mailing list