Changeset d1c041a in mainline for uspace/lib/c/generic/async_sess.c
- Timestamp:
- 2010-12-26T17:35:50Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a1dc7fe
- Parents:
- d3a1ade3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/async_sess.c
rd3a1ade3 rd1c041a 146 146 void async_session_destroy(async_sess_t *sess) 147 147 { 148 conn_node_t *conn; 149 150 /* We did not connect the phone so we do not hang it up either. */ 148 151 sess->sess_phone = -1; 149 /* todo */ 152 153 /* Tear down all data connections. */ 154 while (!list_empty(&sess->conn_head)) { 155 conn = list_get_instance(sess->conn_head.next, conn_node_t, 156 conn_link); 157 158 list_remove(&conn->conn_link); 159 list_remove(&conn->global_link); 160 161 ipc_hangup(conn->data_phone); 162 free(conn); 163 } 150 164 } 151 165
Note:
See TracChangeset
for help on using the changeset viewer.