Boost logo

Boost Users :

Subject: Re: [Boost-users] ipc message_queue getting permission denied
From: Matt Fair (matt.fair_at_[hidden])
Date: 2011-09-29 17:19:11


I tried:
      m_messageQueue = boost::shared_ptr<boost::interprocess::message_queue>(
           new boost::interprocess::message_queue (
             boost::interprocess::open_or_create
             ,name.c_str() //name
             ,numElements //max message number
             ,sizeof(Message) //max message size
             ,boost::interprocess::permissions(777)
             ));

And got the same results as before with Permission denied. Am I doing
something wrong?

Thanks,
Matt

2011/9/29 Ion Gaztañaga <igaztanaga_at_[hidden]>:
> El 29/09/2011 18:07, Matt Fair escribió:
>>
>> Hello,
>>
>> I ran across this problem when I moved my code to another system.  Not
>> sure if this is the right list to post this, but I've been having
>> trouble debugging this as all of my attempts have lead me to dead
>> ends.
>
> The container is built with default permissions (0644 in unix), you'd need
> provide you own permissions in message queue constructor instead of the
> default permissions() parameter.
>
> Best,
>
> Ion
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net