Comment 7 for bug 663090

Both. Add the lines

* hard nofile 4096
* soft nofile 1024

to /etc/security/limits.conf. Then apply the patch
http://www.winehq.org/pipermail/wine-patches/2010-November/095464.html
to wine. Et voila, wine is happy without exposing the average user
to damage from unsafe use of select().