Changeset 1772


Ignore:
Timestamp:
Jan 17, 2005, 3:51:14 AM (21 years ago)
Author:
bird
Message:

Don't return EBADF.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/emx/src/libsocket/soclose.c

    • Property cvs2svn:cvs-rev changed from 1.4 to 1.5
    r1771 r1772  
    4545        if (!__libc_FHClose(socket))
    4646            LIBCLOG_RETURN_INT(0);
     47        /* Convert EBADF to ENOTSOCK (although this normally won't happen). */
     48        if (errno == EBADF)
     49            errno = ENOTSOCK;
    4750        __libc_TcpipSetSocketErrno();
    4851    }
Note: See TracChangeset for help on using the changeset viewer.