Call PTRACE_CONT with addr=0

* strace.c (trace): Call PTRACE_CONT with addr=0.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2012-03-09 15:11:21 +01:00
parent 796f6e82b4
commit 97c503fa2e

View File

@ -1809,7 +1809,7 @@ trace(void)
CLONE_PTRACE itself. */
{
if (WIFSTOPPED(status))
ptrace(PTRACE_CONT, pid, (char *) 1, 0);
ptrace(PTRACE_CONT, pid, (char *) 0, 0);
error_msg_and_die("Unknown pid: %u", pid);
}
}