]> granicus.if.org Git - strace/commitdiff
2003-01-09 Roland McGrath <roland@redhat.com>
authorRoland McGrath <roland@redhat.com>
Fri, 10 Jan 2003 07:50:21 +0000 (07:50 +0000)
committerRoland McGrath <roland@redhat.com>
Fri, 10 Jan 2003 07:50:21 +0000 (07:50 +0000)
* syscall.c (force_result) [S390 || S390X]: Fix typo.

syscall.c

index 578db441c62c8f4b023f56dfed094c2d068734db..b2ecd7aad3ff227741c220110e26908c49ef75e5 100644 (file)
--- a/syscall.c
+++ b/syscall.c
@@ -1479,7 +1479,7 @@ force_result(tcp, error, rval)
 #ifdef LINUX
 #if defined(S390) || defined(S390X)
        gpr2 = error ? -error : rval;
-       if (upeek(pid, PT_GPR2, &gpr2) < 0)
+       if (upeek(tcp->pid, PT_GPR2, &gpr2) < 0)
                return -1;
        if (ptrace(PTRACE_POKEUSER, tcp->pid, (char*)PT_GPR2, gpr2) < 0)
                return -1;