Roland Tollenaar wrote:
> Hi,
> 
>>> Recall that up to Xenomai 2.4 RTDM device/socket closing may fail (with
>>> -EAGAIN) when some other thread is currently using it and doesn't
>>> release it immediately when being "asked". That means for now you should
>>> loop over [rt_dev_]close as long as EAGAIN is returned.
>>
>> Roland, could you please check the return code of [rt_dev_]close.
>> Nevertheless, I'm still puzzled why the socket shows up in
>> /proc/rtcan/sockets because rtcan_raw_close() is called before returning 
> I have been battling with this all morning. I close with
> 
> do{
>     ret=rt_dev_close(can_fd);
>     //printf("%d",ret)
> while(ret!=-9)
> 
> but this only works (without fail) if I uncomment the printf line. I
> have now tried to put in a sleep(1) command instead but due to the crash
> caused  by commenting out hte crash (does not come out of loop) I am now
> trying to save my filesystem. :( :(.
> 

That really sounds like this issue, just applied on CAN:

http://sourceforge.net/mailarchive/forum.php?thread_name=9203.194.114.62.34.1186585293.squirrel%40webmail.krokoworld.de&forum_name=rtnet-users

If yes, you would have found a second reason to look at 2.4... ;)

Jan

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Reply via email to