moonbridge

changeset 326:4379766473ec tip

Fixed proper errno handling for blocking I/O in localconnect function for connecting to sockets
author jbe
date Tue Jun 23 12:25:58 2020 +0200 (3 months ago)
parents 73c009c2f389
children
files moonbridge_io.c
line diff
     1.1 --- a/moonbridge_io.c	Sat Oct 19 14:56:47 2019 +0200
     1.2 +++ b/moonbridge_io.c	Tue Jun 23 12:25:58 2020 +0200
     1.3 @@ -1156,7 +1156,7 @@
     1.4    );
     1.5    if (sock < 0) moonbr_io_return_errmsg();
     1.6    if (connect(sock, (struct sockaddr *)&sockaddr, sizeof(sockaddr))) {
     1.7 -    if (!nonblocking && errno == EINTR) {
     1.8 +    if (!nonblocking && errno != EINTR) {
     1.9        moonbr_io_prepare_errmsg();
    1.10        close(sock);
    1.11        moonbr_io_return_prepared_errmsg();

Impressum / About Us