Changeset 522a4f9 in mainline for uspace/srv/net/tl/tcp/sock.c


Ignore:
Timestamp:
2011-12-16T19:19:11Z (12 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a438de4
Parents:
415578ef
Message:

It is okay to get TCP_ENOTEXIST when closing socket.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/tl/tcp/sock.c

    r415578ef r522a4f9  
    605605
    606606        if (socket->conn != NULL) {
    607                 rc = tcp_uc_close(socket->conn);
    608                 if (rc != EOK) {
    609                         async_answer_0(callid, rc);
     607                trc = tcp_uc_close(socket->conn);
     608                if (trc != TCP_EOK && trc != TCP_ENOTEXIST) {
     609                        async_answer_0(callid, EBADF);
    610610                        return;
    611611                }
Note: See TracChangeset for help on using the changeset viewer.