On 07/25/2017 07:02 PM, Henning Schild wrote:
> Am Tue, 25 Jul 2017 07:48:46 -0500
> schrieb <[email protected]>:
> 
>> I ported Xenomai 3.0.5 to Petalinux 2017.1.  The supported tests run
>> fine, but my code is failing.  rt_task_create always fails with errno
>> set to 17 (EEXIST).  Doesn't matter what arguments I give it.  Before
>> I dissect this further, does anybody have any insight?
> 
> Your thread might not have a shadow yet and you might see a case where
> an EPERM is transformed into an EEXIST.
> We did not discuss the transformation bug yet. But your solution might
> be to just shadow on EPERM and EEXIST, or before calling anything that
> needs a shadow.
> 
> http://www.xenomai.org/pipermail/xenomai/2017-July/037474.html

Testing EPERM is not robust, there are other cases triggering such
error. pthread_kill(pthread_self(), 0) is a better way to check whether
the current thread is known to Cobalt (__RT(pthread_kill(...)) if symbol
wrapping is not in effect).

-- 
Philippe.

_______________________________________________
Xenomai mailing list
[email protected]
https://xenomai.org/mailman/listinfo/xenomai

Reply via email to