Marc Kleine-Budde wrote:

> let's look the the cangen source if there's propper error handling...
> http://svn.berlios.de/viewvc/socketcan/trunk/can-utils/cangen.c?revision=787&view=markup
> nope, there isn't
> 
> There's the option "-i" to ignore ENOBUFS, which is....we don't want to
> do that....
> 

I added a new "-p <timeout>" option to the cangen tool in the SocketCAN SVN.

Thanks for the suggestion!

Just fyi there's no significant difference in CPU usage or CAN bus load with

    cangen can2 -g0 -i -x
or
    cangen can2 -g0 -p 1 -x

But it feels just a bit more sane to use poll() ;-)

Regards,
Oliver

_______________________________________________
Socketcan-core mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/socketcan-core

Reply via email to