• O
    exit: wait: cleanup the ptrace_reparented() checks · f6507f83
    Oleg Nesterov 提交于
    Now that EXIT_DEAD is the terminal state we can kill "int traced"
    variable and check "state == EXIT_DEAD" instead to cleanup the code.  In
    particular, this way it is clear that the check obviously doesn't need
    tasklist_lock.
    
    Also fix the type of "unsigned long state", "long" was always wrong
    although this doesn't matter because cmpxchg/xchg uses typeof(*ptr).
    
    [akpm@linux-foundation.org: don't make me google the C Operator Precedence table]
    Signed-off-by: NOleg Nesterov <oleg@redhat.com>
    Cc: Aaron Tomlin <atomlin@redhat.com>
    Cc: "Eric W. Biederman" <ebiederm@xmission.com>
    Cc: Rik van Riel <riel@redhat.com>
    Cc: Sterling Alexander <stalexan@redhat.com>
    Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
    f6507f83
exit.c 41.9 KB