[OpenSmalltalk/opensmalltalk-vm] 0523bf: Unix socket plugin:

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[OpenSmalltalk/opensmalltalk-vm] 0523bf: Unix socket plugin:

Eliot Miranda-3
 
  Branch: refs/heads/Cog
  Home:   https://github.com/OpenSmalltalk/opensmalltalk-vm
  Commit: 0523bff5d630ab6d221700a44a4fffee6bb6405b
      https://github.com/OpenSmalltalk/opensmalltalk-vm/commit/0523bff5d630ab6d221700a44a4fffee6bb6405b
  Author: Eliot Miranda <[hidden email]>
  Date:   2020-10-10 (Sat, 10 Oct 2020)

  Changed paths:
    M platforms/unix/plugins/SocketPlugin/sqUnixSocket.c

  Log Message:
  -----------
  Unix socket plugin:
Fix two failures and one error for socket tests on macOS.  sendto(2) may fail
with EISCONN if the socket is already connected and a perr address is supplied.
So if sendto errors with EISCONN retry using send.
Use poll(2) instead of select for determining writability of a single socket.