Changeset a46e56b in mainline for uspace/srv/ns/task.c
- Timestamp:
- 2018-03-22T06:49:35Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 77f0a1d
- Parents:
- 3e242d2
- git-author:
- Jakub Jermar <jakub@…> (2018-03-21 23:29:06)
- git-committer:
- Jakub Jermar <jakub@…> (2018-03-22 06:49:35)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/ns/task.c
r3e242d2 ra46e56b 146 146 link_t link; 147 147 task_id_t id; /**< Task ID. */ 148 cap_call_handle_t c allid; /**< Call ID waiting for the connection */148 cap_call_handle_t chandle; /**< Call ID waiting for the connection */ 149 149 } pending_wait_t; 150 150 … … 184 184 texit = ht->have_rval ? TASK_EXIT_NORMAL : 185 185 TASK_EXIT_UNEXPECTED; 186 async_answer_2(pr->c allid, EOK, texit, ht->retval);186 async_answer_2(pr->chandle, EOK, texit, ht->retval); 187 187 188 188 list_remove(&pr->link); … … 192 192 } 193 193 194 void wait_for_task(task_id_t id, ipc_call_t *call, cap_call_handle_t c allid)194 void wait_for_task(task_id_t id, ipc_call_t *call, cap_call_handle_t chandle) 195 195 { 196 196 ht_link_t *link = hash_table_find(&task_hash_table, &id); … … 200 200 if (ht == NULL) { 201 201 /* No such task exists. */ 202 async_answer_0(c allid, ENOENT);202 async_answer_0(chandle, ENOENT); 203 203 return; 204 204 } … … 207 207 task_exit_t texit = ht->have_rval ? TASK_EXIT_NORMAL : 208 208 TASK_EXIT_UNEXPECTED; 209 async_answer_2(c allid, EOK, texit, ht->retval);209 async_answer_2(chandle, EOK, texit, ht->retval); 210 210 return; 211 211 } … … 215 215 (pending_wait_t *) malloc(sizeof(pending_wait_t)); 216 216 if (!pr) { 217 async_answer_0(c allid, ENOMEM);217 async_answer_0(chandle, ENOMEM); 218 218 return; 219 219 } … … 221 221 link_initialize(&pr->link); 222 222 pr->id = id; 223 pr->c allid = callid;223 pr->chandle = chandle; 224 224 list_append(&pr->link, &pending_wait); 225 225 }
Note:
See TracChangeset
for help on using the changeset viewer.