Hello If the sm_p service is called with the SM_NOWAIT flag and the semaphore is not available the EWOULDBLOCK error code is returned to the application. This is not correct since the application expects to see only pSOS errorcodes.
The attached patch solves the issue. I have also included a small test application that can be used to verify the code. Best regards, Ronny -------------- next part -------------- A non-text attachment was scrubbed... Name: semaphore-nowait-return-code.patch Type: application/octet-stream Size: 855 bytes Desc: not available URL: <http://www.xenomai.org/pipermail/xenomai/attachments/20130722/f191924c/attachment.obj> -------------- next part -------------- A non-text attachment was scrubbed... Name: simple_sm_p.c Type: text/x-csrc Size: 715 bytes Desc: not available URL: <http://www.xenomai.org/pipermail/xenomai/attachments/20130722/f191924c/attachment.c> _______________________________________________ Xenomai mailing list [email protected] http://www.xenomai.org/mailman/listinfo/xenomai
