[Pkg-acpi-devel] Bug#565908: acpid: causes Xorg to hang because of "too many connections"
ted at tedfelix.com
Wed Jan 20 23:18:19 UTC 2010
Thanks for the patch. It looks good and appears to work for me. I'll
get it into my next build, 2.0.2 scheduled for 2/15.
Willi Mann wrote:
> Ted Felix schrieb:
>> If you don't mind grabbing the code and building it, you can go into
>> the file connection_list.c and change this line:
>> #define MAX_CONNECTIONS 10
>> To this:
>> #define MAX_CONNECTIONS 20
>> That will get rid of the "Too many connections." message in the log.
>> Whether it will solve your problem, I'm not sure. I will include this
>> change in my next monthly release on 2/15. Let me know if you need more
> I've just found a more reliable way to reproduce this problem: Simply
> switch 10 times between the X session and a console.
> However, changing MAX_CONNECTIONS to 20 solves the problem - I tried to
> switch more than 20 times and the problem did not reappear.
> Attached is a patch that, apart from changing MAX_CONNECTIONS,
> recalculates highestfd in delete_connection. I wrote that patch because
> I first thought that this might be the source of the problem, but it
> isn't. But it might be useful anyway.
More information about the Pkg-acpi-devel