STI on wine: progress + help

Damjan Jovanovic dj015 at
Thu Oct 13 13:34:41 CDT 2005

--- Mike McCormack <mike at> wrote:

> Damjan Jovanovic wrote:
> > The problem seems to be that after running for a
> > couple of seconds, all the file system calls like
> > ioctl() start failing with EBADF (bad file
> > descriptor). Is there something other than
> > wine_server_fd_to_handle() I have to do? The
> scanning
> > application I am testing uses multiple threads and
> > several processes. 
> Once you register the handle with
> wine_server_fd_to_handle(), you need 
> to use wine_server_handle_to_fd() to access it
> again.
> If you're already doing that, you may have a handle
> leak and be running 
> out of file descriptors.  You need to make sure to
> close the handle you 
> receive from wine_server_handle_to_fd(), as the
> returned value is a 
> dup'd unix file handle.
> Mike

You were right, I wasn't calling
wine_server_release_fd(), so wine was hitting the
maximum number of open files limit. I fixed it, AND IT

Thank you Mike, you made my day. I'll be submitting
patch in the next few weeks.

Yahoo! Music Unlimited 
Access over 1 million songs. Try it free.

More information about the wine-devel mailing list