Robotic Tendencies
The personal blog of Robert McQueen

March 28, 2005

Actually deliver signals

$ darcs record
hunk ./trace/main.c 90
- if (ptrace(PTRACE_SYSCALL, pid, signal, NULL) < 0)
+ if (ptrace(PTRACE_SYSCALL, pid, NULL, signal) < 0)
Shall I record this patch? (1/1) [ynWsfqadjk], or ? for help: y
What is the patch name? actually deliver signals
Do you want to add a long comment? [yn] n
Finished recording patch 'actually deliver signals'
$

This doesn’t actually make my project work any better, it just means that it exits rather than goes into an infinite loop when I cause the process being traced to segfault, which I do whenever it makes a fork or vfork (for some reason gcc does this, so my project can’t trace itself being compiled) syscall versus clone which is how all the cool kids implement fork these days.

posted by Robert McQueen @ 2:45 pm
Comments (0) .:. Trackback .:. Permalink

Leave a Reply