https://bugs.winehq.org/show_bug.cgi?id=53486
--- Comment #5 from Jinoh Kang jinoh.kang.kr@gmail.com --- (In reply to Pawel from comment #3)
Please note, that errno will always be zero, because you assign it to zero just before the fprintf output statement.
Actually there is a "poll(2)" call in-between. My intention was to determine if the poll had failed.
When I comment out the line 3575 "errno = 0;" of ./server/sock.c the log line says as follows:
server/sock.c:3586:req_send_socket:forcing STATUS_ALERTED (errno=115)
I have restarted the foobar for several times and the errno always returns 115.
I guess it would have been leftover errno value from other system calls.