OpenSmalltalk / opensmalltalk-vm

Cross-platform virtual machine for Squeak, Pharo, Cuis, and Newspeak.
http://opensmalltalk.org/
Other
563 stars 111 forks source link

Check bind and listen functions for errors #686

Closed jraiford1 closed 5 months ago

jraiford1 commented 5 months ago

When listening on a socket, if the local port is already in use it should fail, however the vm currently assumes that the listen() call is successful. This patch implements a similar check as the connect call. Note that the Windows implementation does not have this issue.

eliotmiranda commented 5 months ago

Looks good. Thanks Jon & welcome!