Mario Charest
05/19/2011 10:24 AM
post85941
|
We setup a shared mem with about 10 rwlock in it. Everythink work as expected, unless the program terminates without
deleting this shared mem.
On restart the program reuses the same sharemem and is unable to initialised the rwlock, errno says EINVAL on some and
ESRCH or others. I print every value of the attribute and rwlock_t structure and they are the same in all scenarios.
I don't understand why it works on a freshly created sharedmem and does not if it is reopen. In both cases the
sharedmem is zeroed out before initialising the rwlocks.
|
|
|