elast0ny / shared_memory

A Rust wrapper around native shared memory for Linux and Windows
382 stars 51 forks source link

`set_owner` method has no effect on Linux #48

Closed vitvakatu closed 4 years ago

vitvakatu commented 4 years ago

Hello

As far as I can see, Shmem::set_owner method does not affect the behavior of unix::MapData, as MapData::owner depends only on called function (whether it is create_mapping or open_mapping).

elast0ny commented 4 years ago

Hi, thank you for reporting this issue. You're right that as part of Shmem::set_owner, the unix::MapData::owner field should be updated.

I will fix it as soon as I have some spare time,

Thanks !