Sendingsignalsonsyscalls at roojbos.sk

Seraphime Kirkovski kirkseraph at gmail.com
Sat Dec 24 15:36:00 UTC 2016


Hi Dmitry,

On Sat, Dec 24, 2016 at 04:59:21PM +0300, Dmitry V. Levin wrote:
> I'd rather extended new -efault= syntax with :signal= option.

Thanks for the feedback. You're absolutely right, adding this to -e 
fault is the best solution, not only it minimizes new code, but gives 
a nice consistent UI. I should have read its implementation before 
beginning mine...

I'll send a patch on Monday, no one looks at those at celebrations 
anyway.

> > Currently, I modified the sources so the signal is send through 
> > ptrace(<GET|SET>SIGINFO... and ptrace_restart afterwards. I tried 
> > adding
> 
> There is no need to do additional PTRACE_SETSIGINFO calls, one can pass
> the signal along with PTRACE_SYSCALL call in restart_tracee.

I hadn't send signals via ptrace before, so I trusted the man pages. 
Thanks for the tip.

Have a nice holiday weekend !
Seraphime Kirkovski




More information about the Strace-devel mailing list