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.
Calendar
M | T | W | T | F | S | S |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 | 31 |
Links
Archives
- April 2024
- February 2024
- March 2023
- November 2022
- May 2022
- February 2022
- June 2021
- January 2021
- August 2019
- October 2018
- July 2017
- May 2010
- October 2009
- August 2009
- July 2009
- March 2009
- January 2009
- July 2008
- June 2008
- April 2008
- May 2007
- January 2007
- December 2006
- June 2006
- April 2006
- March 2006
- November 2005
- October 2005
- September 2005
- August 2005
- July 2005
- May 2005
- April 2005
- March 2005