report on obscure issues: running out of file handles with python under wine

Damjan Jovanovic damjan.jov at gmail.com
Thu Jan 29 23:31:42 CST 2009


On Fri, Jan 30, 2009 at 5:41 AM, Vitaliy Margolen
<wine-devel at kievinfo.com> wrote:
> Luke Kenneth Casson Leighton wrote:
>> also note it's file descriptors not file handles
> There are no such thing as "handle" in *NIX world. The only thing matter is
> a file descriptor. But it's for files, directories, devices, etc.
>
> Wine takes care of all the handles internally (one of the main tasks for
> wineserver). Wineserver has a really big handle limit:
> #define MAX_HANDLE_ENTRIES  0x00ffffff
>
> I really doubt you overrunning that. And you would see messages in the
> terminal if Wine can't allocate anymore FDs.
>
> Vitaliy.
>
>
>

Some parts of wine have smaller limits, eg. dlls/msvcrt/file.c:

/* FIXME: this should be allocated dynamically */
#define MSVCRT_MAX_FILES 2048

Damjan



More information about the wine-devel mailing list