On Sat, Jun 06, 2009 at 12:45:58PM +0200, Damjan Jovanovic wrote:
From what I see you can either write/patch a native socksification library to track dup()s and dup2()s, as well as possibly do something about the unix domain sockets that are used to transfer file descriptors between the app and wineserver. Or alternatively fstat() a socket and use the inode number as its identity instead of the file descriptor, since the inode doesn't change between dup()s.
I'm not 100% sure you can guarantee (probably OS dependant) that fstat() on a socket return anything sensible for an inode number.
David