[Xenomai] Heap binding error (EWOULDBLOCK)

Philippe Gerum rpm at xenomai.org
Tue Oct 17 12:04:02 CEST 2017


On 10/17/2017 11:20 AM, Roberto Finazzi wrote:
> Hi,
> I'm porting an old Xenomai 2.5.6 application to the Cobalt 3.0.5.
> In the original application there were several heaps shared between many
> processes.
> Now I maintained the same structure but, when I tryed to bind an already
> created heap from another process, I had always the EWOULDBLOCK error.
> The names used in create and bind were the same. In the previous
> application the heap was created using H_SHARED but now is obsolete.
> 
> Just to test I created two simple programs with a shared semaphore and
> the behaviour is the same: the second program is blocked always on the
> rt_sem_bind even if the semaphore is already created.
> It seems like if the name of the shared resource is not registered
> properly.
> 
> Have you got some suggestions for me?
> 

--enable-pshared is required for sharing common resources between processes.


-- 
Philippe.



More information about the Xenomai mailing list