OpenSmalltalk / opensmalltalk-vm

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

Check bind and listen functions for errors #686

Closed jraiford1 closed 4 weeks ago

jraiford1 commented 4 weeks 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 4 weeks ago

Looks good. Thanks Jon & welcome!