boostorg / interprocess

Boost.org interprocess module
http://boost.org/libs/interprocess
132 stars 117 forks source link

Handle EINTR in shared_memory_object #152

Open Lastique opened 3 years ago

Lastique commented 3 years ago

As documented, shm_open may return EINTR if interrupted by a signal. This error code is not specially handled in shared_memory_object::priv_open_or_create and will result in an exception being thrown. It would be better if the shm_open call was attempted again internally by shared_memory_object without an exception.