]> granicus.if.org Git - strace/commitdiff
2003-03-18 Roland McGrath <roland@redhat.com>
authorRoland McGrath <roland@redhat.com>
Fri, 21 Mar 2003 07:33:15 +0000 (07:33 +0000)
committerRoland McGrath <roland@redhat.com>
Fri, 21 Mar 2003 07:33:15 +0000 (07:33 +0000)
* process.c [LINUX] (sys_clone): Don't dereference parent_tid argument.

process.c

index 8c7ca1280a13aca9bd059f2b374fa95687b25fc2..1b69d214e51759664e65cc14b54d4d1cc53970de 100644 (file)
--- a/process.c
+++ b/process.c
@@ -570,14 +570,8 @@ struct tcb *tcp;
                if ((flags & (CLONE_PARENT_SETTID|CLONE_CHILD_SETTID
                              |CLONE_CHILD_CLEARTID|CLONE_SETTLS)) == 0)
                        return 0;
-               if (flags & CLONE_PARENT_SETTID) {
-                       int pid;
-                       if (umove(tcp, tcp->u_arg[ARG_PTID], &pid) == 0)
-                               tprintf(", parent_tidptr=[%d]", pid);
-                       else
-                               tprintf(", parent_tidptr=%#lx",
-                                       tcp->u_arg[ARG_PTID]);
-               }
+               if (flags & CLONE_PARENT_SETTID)
+                       tprintf(", parent_tidptr=%#lx", tcp->u_arg[ARG_PTID]);
                if (flags & CLONE_SETTLS) {
 # ifdef I386
                        struct modify_ldt_ldt_s copy;