server: raise ulimit -n if possible, warn if very low

Dan Kegel dank at kegel.com
Fri Nov 5 04:59:12 CDT 2010


A Pando downloader hangs because wineserver and the app both
run out of file descriptors; see
http://bugs.winehq.org/show_bug.cgi?id=25015
and
https://bugs.launchpad.net/ubuntu/+bug/663090

Adding the lines

*               hard    nofile                  4096
*               soft    nofile                  1024

to /etc/security/limits.conf and applying this patch resolves the
problem for me.

I'm talking with Scott about gettting Ubuntu to make this change to limits.conf.

Thanks to Alexandre for pointing out that soft limits were useful here.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ulimit.patch
Type: application/octet-stream
Size: 921 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20101105/6e3064c0/attachment.obj>


More information about the wine-patches mailing list