Hi, > 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 > -EAGAIN and the error mask shown there is weired as well. > Roland, do you perform the open and close in a serialized way (same > task) and in nrt context?
I have now got the close loop with the printf in it. You are probably right that I was closing in the rt context because syslog shows an error from rtdm stating that one cannot close from rea time. I understand from a thread elsewhere that printf brings the program to secondary mode hence helps with the closing? Its working now infallibly, no more open sockets remain so I can work like this. Also applied the suggestion to turn off the loopback with setsockopt and that functions well too (no more buffer overflows) I only still have the problem with EML which does not seem happy in combination with rtcan. Even if I increase the rtskbf_cache_size value (now on 2048). It still occurs incidentally and even after the program has been running for a while. Anyhow that seems to have nothing to do with this topic....drifting a bit. Thanks. Roland > > Wolfgang. > > > _______________________________________________ Xenomai-help mailing list [email protected] https://mail.gna.org/listinfo/xenomai-help
