forked process before using ptrace() to continue it, instead of asking
ptrace to deliver it, as that doesn't seem to work on some versions
of linux.
CCMAIL: 77824-done@bugs.kde.org
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2380
if ((res = VG_(waitpid)(pid, &status, 0)) == pid &&
WIFSTOPPED(status) && WSTOPSIG(status) == SIGSTOP &&
ptrace(PTRACE_SETREGS, pid, NULL, ®s) == 0 &&
- ptrace(PTRACE_DETACH, pid, NULL, SIGSTOP) == 0) {
+ kill(pid, SIGSTOP) == 0 &&
+ ptrace(PTRACE_DETACH, pid, NULL, 0) == 0) {
Char pidbuf[15];
Char file[30];
Char buf[100];