diff options
author | Paul A. Patience <paul@apatience.com> | 2021-09-10 02:53:58 -0400 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2021-09-11 09:27:10 -0700 |
commit | 13883a15ee8c1d9617f45ebcd6fdae8e01291e20 (patch) | |
tree | d00aa1db028615978d454993b72bea456198cea9 /gencadr.txr | |
parent | 927e028829d895a302978a3baa01c653ece7b6d1 (diff) | |
download | txr-13883a15ee8c1d9617f45ebcd6fdae8e01291e20.tar.gz txr-13883a15ee8c1d9617f45ebcd6fdae8e01291e20.tar.bz2 txr-13883a15ee8c1d9617f45ebcd6fdae8e01291e20.zip |
sockets: throw exception if socket call fails.
The open_socket function was not checking the result of the
socket call for failure, which would cause datagram socket
streams to be initialized with an invalid file descriptor (-1)
and, when opening stream sockets, throw an error not
representative of the actual problem.
* socket.c (open_socket): Throw exception if socket call fails.
Diffstat (limited to 'gencadr.txr')
0 files changed, 0 insertions, 0 deletions