Changeset dd0c8a0 in mainline for uspace/srv/ns/task.c
- Timestamp:
- 2013-09-29T06:56:33Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a9bd960d
- Parents:
- 3deb0155 (diff), 13be2583 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/ns/task.c
r3deb0155 rdd0c8a0 179 179 180 180 loop: 181 list_foreach(pending_wait, cur) { 182 pending_wait_t *pr = list_get_instance(cur, pending_wait_t, link); 183 181 list_foreach(pending_wait, link, pending_wait_t, pr) { 184 182 ht_link_t *link = hash_table_find(&task_hash_table, &pr->id); 185 183 if (!link) … … 198 196 199 197 hash_table_remove(&task_hash_table, &pr->id); 200 list_remove( cur);198 list_remove(&pr->link); 201 199 free(pr); 202 200 goto loop; … … 208 206 sysarg_t retval; 209 207 task_exit_t texit; 208 bool remove = false; 210 209 211 210 ht_link_t *link = hash_table_find(&task_hash_table, &id); … … 235 234 } 236 235 237 hash_table_remove_item(&task_hash_table, link);236 remove = true; 238 237 retval = EOK; 239 238 … … 243 242 ipc_answer_2(callid, retval, texit, ht->retval); 244 243 } 244 if (remove) 245 hash_table_remove_item(&task_hash_table, link); 245 246 } 246 247
Note:
See TracChangeset
for help on using the changeset viewer.