Ignore:
Timestamp:
Jun 29, 2018, 10:44:14 AM (6 years ago)
Author:
alain
Message:

Fix a bug in function sched_handle_signal():
When the deleted user thread is the last executed thread,
the sched->u_last field must be updated to point on another user thread.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/kernel_config.h

    r447 r450  
    9999#define DEBUG_PROCESS_REFERENCE_INIT   0
    100100#define DEBUG_PROCESS_SIGACTION        0
    101 #define DEBUG_PROCESS_TXT              2
     101#define DEBUG_PROCESS_TXT              0
    102102#define DEBUG_PROCESS_ZERO_CREATE      0
    103103
     
    116116#define DEBUG_RPC_VMM_GET_VSEG         0
    117117
    118 #define DEBUG_SCHED_HANDLE_SIGNALS     1
    119 #define DEBUG_SCHED_YIELD              1    // must be activated by the trace() syscall
     118#define DEBUG_SCHED_HANDLE_SIGNALS     2
     119#define DEBUG_SCHED_YIELD              2    // must be activated by the trace() syscall
    120120
    121121#define DEBUG_SYSCALLS_ERROR           2
     
    125125#define DEBUG_SYS_EXIT                 1
    126126#define DEBUG_SYS_FG                   0
    127 #define DEBUG_SYS_FORK                 1
     127#define DEBUG_SYS_FORK                 0
    128128#define DEBUG_SYS_GET_CONFIG           0
    129129#define DEBUG_SYS_ISATTY               0
    130130#define DEBUG_SYS_KILL                 0
    131131#define DEBUG_SYS_MMAP                 0
    132 #define DEBUG_SYS_READ                 2
     132#define DEBUG_SYS_READ                 0
    133133#define DEBUG_SYS_THREAD_CANCEL        0
    134134#define DEBUG_SYS_THREAD_CREATE        0
     
    140140#define DEBUG_SYS_TRACE                0
    141141#define DEBUG_SYS_WAIT                 0
    142 #define DEBUG_SYS_WRITE                2
     142#define DEBUG_SYS_WRITE                0
    143143
    144144#define DEBUG_SPINLOCKS                0
Note: See TracChangeset for help on using the changeset viewer.