Changes in uspace/srv/ns/clonable.c [7b616e2:566992e1] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/ns/clonable.c
r7b616e2 r566992e1 31 31 */ 32 32 33 #include < async.h>33 #include <ipc/ipc.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 async_answer_0(callid, EBUSY);83 ipc_answer_0(callid, EBUSY); 84 84 return; 85 85 } … … 91 91 assert(csr->service == SERVICE_LOADER); 92 92 93 async_answer_0(callid, EOK);93 ipc_answer_0(callid, EOK); 94 94 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, 95 ipc_forward_fast(csr->callid, phone, csr->iface, csr->arg3, 0, 101 96 IPC_FF_NONE); 102 async_exchange_end(exch);103 97 104 98 free(csr); 105 async_hangup(sess);99 ipc_hangup(phone); 106 100 } 107 101 … … 123 117 cs_req_t *csr = malloc(sizeof(cs_req_t)); 124 118 if (csr == NULL) { 125 async_answer_0(callid, ENOMEM);119 ipc_answer_0(callid, ENOMEM); 126 120 return; 127 121 } … … 132 126 if (rc < 0) { 133 127 free(csr); 134 async_answer_0(callid, rc);128 ipc_answer_0(callid, rc); 135 129 return; 136 130 }
Note:
See TracChangeset
for help on using the changeset viewer.