Re: [Boost-bugs] [Boost C++ Libraries] #8581: Files in C:\ProgramData\boost_interprocess are not accessible.

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #8581: Files in C:\ProgramData\boost_interprocess are not accessible.
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-02-24 14:52:19


#8581: Files in C:\ProgramData\boost_interprocess are not accessible.
-------------------------------------------------+-------------------------
  Reporter: Andreas Neustifter | Owner: igaztanaga
  <andreas.neustifter@…> | Status: new
      Type: Bugs | Component:
 Milestone: To Be Determined | interprocess
   Version: Boost 1.50.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------------------------+-------------------------

Comment (by anonymous):

 IMHO the right solution is to grant unrestricted access to IPC objects:

 {{{
 using namespace boost::interprocess;
 permissions unrestricted;
 unrestricted.set_unrestricted();
 named_mutex mutex(open_or_create, "abc", unrestricted);
 scoped_lock< named_mutex > lock(mutex);
 }}}

 There is only one trouble: IPC files can be unexpectedly locked by someone
 else. When somebody lock the %PROGRAMDATA%\boost_interprocess\abc file the
 code written above will misbehave on mutex constructor. I do not know how
 to check the fact: do we have access to IPC file?

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/8581#comment:14>
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:15 UTC