http://bugs.winehq.org/show_bug.cgi?id=19861
--- Comment #28 from Octavian Voicu octavian.voicu@gmail.com 2010-06-11 05:56:44 --- (In reply to comment #27)
If breaking applications is a security of some kind - let be it. I just would like to repeat once again, that's not only Wine who is potentially affected, any application that uses a lot of file handles will break, and most likely without any message.
We are trying to provide Windows compatibility, and Windows seems to support between 512 and 2048 open files. On the other hand, just running notepad opens 70 files:
$ wine notepad & [1] 10762 $ ls -l /proc/`pidof wineserver`/fd | wc -l 70
But Windows' limit is per-application. In Wine's case all open files go through wineserver, so running more applications means more open files. That's why Wine needs more open files than most applications.
Actually, VMware added this to my /etc/security/limits.conf file:
# Automatically generated by the VMware Installer - DO NOT REMOVE * hard nofile 4096