Changeset dd0c8a0 in mainline for uspace/srv/ns/task.c


Ignore:
Timestamp:
2013-09-29T06:56:33Z (12 years ago)
Author:
Beniamino Galvani <b.galvani@…>
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.
Message:

Merge mainline changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/ns/task.c

    r3deb0155 rdd0c8a0  
    179179       
    180180loop:
    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) {
    184182                ht_link_t *link = hash_table_find(&task_hash_table, &pr->id);
    185183                if (!link)
     
    198196               
    199197                hash_table_remove(&task_hash_table, &pr->id);
    200                 list_remove(cur);
     198                list_remove(&pr->link);
    201199                free(pr);
    202200                goto loop;
     
    208206        sysarg_t retval;
    209207        task_exit_t texit;
     208        bool remove = false;
    210209       
    211210        ht_link_t *link = hash_table_find(&task_hash_table, &id);
     
    235234        }
    236235       
    237         hash_table_remove_item(&task_hash_table, link);
     236        remove = true;
    238237        retval = EOK;
    239238       
     
    243242                ipc_answer_2(callid, retval, texit, ht->retval);
    244243        }
     244        if (remove)
     245                hash_table_remove_item(&task_hash_table, link);
    245246}
    246247
Note: See TracChangeset for help on using the changeset viewer.