diff options
| author | Oleg Nesterov <[email protected]> | 2014-12-10 15:54:45 -0800 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2014-12-10 17:41:17 -0800 |
| commit | f6507f83bccd4a5f7dc7091079bf58128dc56d66 (patch) | |
| tree | f664fee962fdd4521ec1b64143d8a0f21a32a7e0 /tools/perf/util/scripting-engines/trace-event-python.c | |
| parent | 7f6def9f9b6ebba42fcdc12cfb3092f2cf44b3fe (diff) | |
exit: wait: cleanup the ptrace_reparented() checks
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).
[[email protected]: don't make me google the C Operator Precedence table]
Signed-off-by: Oleg Nesterov <[email protected]>
Cc: Aaron Tomlin <[email protected]>
Cc: "Eric W. Biederman" <[email protected]>
Cc: Rik van Riel <[email protected]>
Cc: Sterling Alexander <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions