Changeset 7b616e2 in mainline for uspace/srv/ns/clonable.c
- Timestamp:
- 2017-09-27T22:40:09Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d076f16
- Parents:
- 8d6bcc8c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/ns/clonable.c
r8d6bcc8c r7b616e2 31 31 */ 32 32 33 #include < ipc/ipc.h>33 #include <async.h> 34 34 #include <ipc/services.h> 35 35 #include <adt/list.h> … … 81 81 /* There was no pending connection request. */ 82 82 printf("%s: Unexpected clonable server.\n", NAME); 83 ipc_answer_0(callid, EBUSY);83 async_answer_0(callid, EBUSY); 84 84 return; 85 85 } … … 91 91 assert(csr->service == SERVICE_LOADER); 92 92 93 ipc_answer_0(callid, EOK);93 async_answer_0(callid, EOK); 94 94 95 ipc_forward_fast(csr->callid, phone, csr->iface, csr->arg3, 0, 95 async_sess_t *sess = async_callback_receive(EXCHANGE_SERIALIZE); 96 if (sess == NULL) 97 async_answer_0(callid, EIO); 98 99 async_exch_t *exch = async_exchange_begin(sess); 100 async_forward_fast(csr->callid, exch, csr->iface, csr->arg3, 0, 96 101 IPC_FF_NONE); 102 async_exchange_end(exch); 97 103 98 104 free(csr); 99 ipc_hangup(phone);105 async_hangup(sess); 100 106 } 101 107 … … 117 123 cs_req_t *csr = malloc(sizeof(cs_req_t)); 118 124 if (csr == NULL) { 119 ipc_answer_0(callid, ENOMEM);125 async_answer_0(callid, ENOMEM); 120 126 return; 121 127 } … … 126 132 if (rc < 0) { 127 133 free(csr); 128 ipc_answer_0(callid, rc);134 async_answer_0(callid, rc); 129 135 return; 130 136 }
Note:
See TracChangeset
for help on using the changeset viewer.