Changeset b0d82d1 in mainline for uspace/srv/net/tl/tcp/ucall.c


Ignore:
Timestamp:
2011-11-30T21:36:36Z (12 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
26ec91c
Parents:
23fe06c
Message:

Implement socket close. Unlock mutexes on error paths.

File:
1 edited

Legend:

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

    r23fe06c rb0d82d1  
    9191
    9292        if (nconn->cstate != st_established) {
     93                fibril_mutex_unlock(&nconn->cstate_lock);
     94
    9395                log_msg(LVL_DEBUG, "tcp_uc_open: Connection was reset.");
    9496                assert(nconn->cstate == st_closed);
     
    163165
    164166        if (conn->rcv_buf_used == 0) {
     167                fibril_mutex_unlock(&conn->rcv_buf_lock);
     168
    165169                /* End of data, peer closed connection. */
    166170                assert(conn->rcv_buf_fin);
Note: See TracChangeset for help on using the changeset viewer.