http://bugs.winehq.org/show_bug.cgi?id=11621
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |00cpxxx@gmail.com
--- Comment #26 from Bruno Jesus 00cpxxx@gmail.com 2011-08-06 20:16:48 CDT --- André, as you stated it seems like SIOCATMARK on linux always return 0 while on Windows it always returns 1 (at least in this case for Putty). The socket is marked OOBINLINE and there's a note on microsoft article http://msdn.microsoft.com/en-us/library/ms740102%28v=vs.85%29.aspx saying:
=== Note When the SO_OOBINLINE socket option is set, the SIOCATMARK IOCTL always returns TRUE, and OOB data is returned to the user as normal data. ===
If during the ioctl call we read the socket OOBINLINE flag using getsockopt we can always return 1 on wine matching the windows behavior. Or am I completely mistaken?