[ovs-dev] [PATCH 3/7] daemon: Fix behavior of read_pidfile() for our own pidfile.

Ben Pfaff blp at nicira.com
Thu Sep 23 18:17:45 UTC 2010


On Thu, Sep 23, 2010 at 10:57:01AM -0700, Justin Pettit wrote:
> On Sep 23, 2010, at 9:40 AM, Ben Pfaff wrote:
> 
> > @@ -191,6 +195,10 @@ def _make_pidfile():
> >             file.close()
> >             return
> > 
> > +        s = os.fstat(file.fileno())
> > +        _pidfile_dev = s.st_dev
> > +        _pidfile_ino = s.st_ino
> 
> I don't know why it would fail at this point, but is it worth putting
> this into a try block?

At that point it seems more likely to be a program bug than an OS error.




More information about the dev mailing list