On 21/05/2009, Jan Kiszka <[email protected]> wrote: > Steve wrote: >> On 18/05/2009, Gilles Chanteperdrix <[email protected]> >> wrote: >>> Steve wrote: >>>> First, thank you for the help on my previous query. >>>> >>>> I am still working on porting a c++ application from RTAI to Xenomai, >>>> and have encountered a problem with sockets, specifically the select >>>> function. >>>> >>>> When Xenomai is not being used the code runs as expected. Once the >>>> Xenomai headers, compile options, etc, are used the select function >>>> fails with the error EFAULT. I have reproduced the error (works >>>> without Xenomai, EFAULTs with Xenomai) using the following program: >>>> >> <snip> >>>> I am using Xenomai 2.4.6.1 on a vanilla 2.6.24.6 Linux kernel, and >>>> running on Ubuntu 8.04. >>> Could you try 2.4.7, to see if you are not having a bug which has >>> already been fixed? >>> >>> What you are trying should work, even though you are not really using >>> Xenomai's select but Linux plain select. >>> >>> -- >>> Gilles. >>> >> >> I have just tested my example code with Xenomai version 2.4.7 but I am >> still encountering the problem. > > You need to pull the latest 2.4.x git version [1]. > > Jan > > [1] http://git.xenomai.org/?p=xenomai-2.4.git;a=summary > >
Sorry, just realised I sent this directly to Jan and no-one else: I have grabbed the latest version of 2.4.x (19th May 2009) and the select problem has been solved. Thank you all for your suggestions, and I will make sure to grab the latest git version in future (I hadn't realised that 'snapshot' refered to the entire release instead of a small part (or snapshot) of it, allowing for http download from that page, sorry). Thank you again, Steve _______________________________________________ Xenomai-help mailing list [email protected] https://mail.gna.org/listinfo/xenomai-help
