Changeset b91bb65 in mainline for generic/src/proc/thread.c


Ignore:
Timestamp:
2006-06-05T14:11:18Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9c1c6771
Parents:
e090e1bc
Message:

Kill task when its main thread exits.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • generic/src/proc/thread.c

    re090e1bc rb91bb65  
    351351        }
    352352        list_append(&t->th_link, &task->th_head);
    353         task->refcount++;
     353        if (task->refcount++ == 0)
     354                task->main_thread = t;
    354355        spinlock_unlock(&task->lock);
    355356
Note: See TracChangeset for help on using the changeset viewer.