• Ingo Molnar's avatar
    [PATCH] threaded coredumps, tcore-fixes-2.5.51-A0 · b9daa006
    Ingo Molnar authored
    This fixes one more threaded-coredumps detail reported by the glibc
    people: all threads taken down by the coredump code should report the
    proper exit code.  We can do this rather easily via the group_exit
    mechanism.  'Other' threads used to report SIGKILL, which was highly
    confusing as the shell often displayed the 'Killed' message instead of a
    'Segmentation fault' message.
    
    Another missing bit was the 0x80 bit set in the exit status for all
    threads, if the coredump was successful.  (it's safe to set this bit in
    ->sig->group_exit_code in an unlocked way because all threads are
    artificially descheduled by the coredump code.)
    b9daa006
exec.c 29.3 KB