Changeset fd72312 in mainline for kernel/generic/src/ipc/kbox.c


Ignore:
Timestamp:
2009-02-10T13:49:37Z (16 years ago)
Author:
Jiri Svoboda <jirik.svoboda@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
820edde
Parents:
198a9ef
Message:

Bugfix: Check kbox, not regular box. In case where the debugger disconnected first and then the application terminated, the application task would not be cleaned up.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/ipc/kbox.c

    r198a9ef rfd72312  
    129129        ipl = interrupts_disable();
    130130        spinlock_lock(&TASK->lock);
    131         spinlock_lock(&TASK->answerbox.lock);
    132         if (list_empty(&TASK->answerbox.connected_phones)) {
     131        spinlock_lock(&TASK->kb.box.lock);
     132        if (list_empty(&TASK->kb.box.connected_phones)) {
    133133                /*
    134134                 * Last phone has been disconnected. Detach this thread so it
     
    151151        }
    152152
    153         spinlock_unlock(&TASK->answerbox.lock);
     153        spinlock_unlock(&TASK->kb.box.lock);
    154154        spinlock_unlock(&TASK->lock);
    155155        interrupts_restore(ipl);
Note: See TracChangeset for help on using the changeset viewer.