Re: [PATCH 64] convert ptrace_setsiginfo() to use ptrace_rw_siginfo()

2009-10-07 Thread Roland McGrath
+ if (context-siginfo) + return ptrace_rw_siginfo(tracee, context, info, true); Superfluous test, just call it unconditionally as with the get case. Then both helpers have everything in common, and they are static anyway, so you might as well just call ptrace_rw_siginfo from

[PATCH 64] convert ptrace_setsiginfo() to use ptrace_rw_siginfo()

2009-10-02 Thread Oleg Nesterov
Like the previous patch, but if the tracee didn't report a signal we do nothing but return success. Currently ptrace_notify() always sets -last_siginfo != NULL which can be update via PTRACE_SETSIGINFO, but this info will be never used. We pretend siginfo was updated for compatibility but the