daemon: Fix behavior of read_pidfile() for our own pidfile.
authorBen Pfaff <blp@nicira.com>
Thu, 23 Sep 2010 16:39:47 +0000 (09:39 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 23 Sep 2010 18:45:34 +0000 (11:45 -0700)
Opening a file descriptor and then closing it always discards any locks
held on the underlying file, even if the file is still open as another file
descriptor.  This meant that calling read_pidfile() on the process's own
pidfile would discard the lock and make other OVS processes think that the
process had died.  This commit fixes the problem.


No differences found