lkml.org 
[lkml]   [2005]   [Aug]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    SubjectRe: [PATCH] Fix PPC signal handling of NODEFER, should not affect sa_mask
    From
    Date
    If this is indeed the way things should work. I'll go ahead and fix all
    the other architectures.

    -- Steve

    Signed-off-by: Steven Rostedt <rostedt@goodmis.org>

    --- linux-2.6.13-rc6-git1/arch/ppc/kernel/signal.c.orig 2005-08-09 17:00:43.000000000 -0400
    +++ linux-2.6.13-rc6-git1/arch/ppc/kernel/signal.c 2005-08-09 17:01:37.000000000 -0400
    @@ -759,13 +759,12 @@ int do_signal(sigset_t *oldset, struct p
    else
    handle_signal(signr, &ka, &info, oldset, regs, newsp);

    - if (!(ka.sa.sa_flags & SA_NODEFER)) {
    - spin_lock_irq(&current->sighand->siglock);
    - sigorsets(&current->blocked,&current->blocked,&ka.sa.sa_mask);
    + spin_lock_irq(&current->sighand->siglock);
    + sigorsets(&current->blocked,&current->blocked,&ka.sa.sa_mask);
    + if (!(ka.sa.sa_flags & SA_NODEFER))
    sigaddset(&current->blocked, signr);
    - recalc_sigpending();
    - spin_unlock_irq(&current->sighand->siglock);
    - }
    + recalc_sigpending();
    + spin_unlock_irq(&current->sighand->siglock);

    return 1;
    }

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-08-09 23:10    [W:0.034 / U:2.584 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site