Re: Bug in compat_ppoll

Jose Goncalves <[email protected]>
Newsgroups gmane.linux.bluez.devel
Message-ID <[email protected]>
Marcel Holtmann wrote:
> Hi Jose,
>
>   
>> When I was cross-compiling Bluez for a system without the ppoll() system
>> call, I've found a bug on you ppoll() stub, compat_ppoll(), that causes
>> rfcomm to eat all CPU power when called in this way:
>>
>> $ rfcomm listen 0 1 <cmd>
>>
>> After the RFCOMM connection is established and the command is executed
>> the CPU load reaches 100%.
>>
>> This patch solved my problem:
>>     
>
> your patch has been applied. Thanks.
>
> I was actually considering to simply fail compilation on systems that
> don't support ppoll().
>
>   

I don't think that is such a good idea because there are still several
embedded systems that use an old Linux kernel or an old Glibc (that's my
case, I'm using Glibc 2.3.6 on my board).

Regards,
José Miguel Gonçalves


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.