Changes in uspace/srv/ns/task.c [3e6a98c5:feeac0d] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/ns/task.c
r3e6a98c5 rfeeac0d 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.