On Tue, Sep 21, 2010 at 5:30 AM, Dmitry Timoshkov <[email protected]> wrote: > Dan Kegel <[email protected]> wrote: > >> Spotted by Guillaume ORTEGA. He reports this fixes >> http://bugs.winehq.org/show_bug.cgi?id=24101 >> >> Passes kernel32 tests. > > That's not a use after close, client's fd passed in the server call is used > just as an association of the server side.
Guillaume claims in http://bugs.winehq.org/show_bug.cgi?id=24101#c33 that wine_server_send_fd() returns before the fd is actually sent, and delaying the close until after the server call fixes the race.
