http://bugs.winehq.org/show_bug.cgi?id=29499
--- Comment #49 from Bruno Jesus 00cpxxx@gmail.com 2013-01-08 10:18:18 CST --- As far as I remember the socket was already closed when WS_recv was called, that's why recvmsg returns -1 and poll waits forever with and invalid fd instead of returning and setting errno = EBADFD. I'll try a few things today, the main problem is that I can only test in linux.