http://bugs.winehq.org/show_bug.cgi?id=30020
--- Comment #16 from Witold Baryluk baryluk-winehq@smp.if.uj.edu.pl 2012-04-23 21:28:45 CDT --- (In reply to comment #15)
Wine support linger properly by converting the structs as far as I remember and it can also be seen in http://source.winehq.org/source/dlls/ws2_32/socket.c#L2593
Yes, indeed I was looking at winsock1, in ws2_32/socket.c line 4106 you can find relevant code. (Still few checks are missing, like making sure optlen == sizeof(LINGER)).
I will attach patch which adds some additional tracing, ok?