Changeset ccbd2e1 in mainline


Ignore:
Timestamp:
2020-05-06T10:16:58Z (4 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0800b26
Parents:
622e7c9
Message:

Assert ipc_hangup succeeded. Do not hang up twice.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/async/client.c

    r622e7c9 rccbd2e1  
    10521052static void async_hangup_internal(cap_phone_handle_t phone)
    10531053{
    1054         (void) ipc_hangup(phone);
     1054        errno_t rc;
     1055
     1056        rc = ipc_hangup(phone);
     1057        assert(rc == EOK);
     1058        (void) rc;
    10551059}
    10561060
     
    10771081                list_remove(&exch->sess_link);
    10781082                list_remove(&exch->global_link);
    1079                 async_hangup_internal(exch->phone);
     1083                if (sess->mgmt != EXCHANGE_ATOMIC &&
     1084                    sess->mgmt != EXCHANGE_SERIALIZE)
     1085                        async_hangup_internal(exch->phone);
    10801086                free(exch);
    10811087        }
Note: See TracChangeset for help on using the changeset viewer.