Subject: [Boost-bugs] [Boost C++ Libraries] #3582: boost::interprocess::file_lock closes when file is opened then closed.
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-10-30 01:02:35
#3582: boost::interprocess::file_lock closes when file is opened then closed.
----------------------------------+-----------------------------------------
Reporter: jcoffland | Owner: igaztanaga
Type: Bugs | Status: new
Milestone: Boost 1.41.0 | Component: interprocess
Version: Boost 1.39.0 | Severity: Problem
Keywords: file_lock open close |
----------------------------------+-----------------------------------------
An exclusive file lock is lost if the same file is opened and closed else
where in the code.
The attached example was complied like this:
g++ -o boost_file_lock_test boost_file_lock_test.cpp
-I<path/top/boost-1_39>/include/boost-1_39/
Running two instances with in 30 seconds demonstrates the bug. Both
instances print 'Acquired lock' when one should print 'Could not acquire
lock' and exit.
This affects, at the very least, Ubuntu 9.04 Linux but most likely other
Linux systems and possibly other platforms.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/3582> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:01 UTC