]> Cypherpunks repositories - gostls13.git/commitdiff
don't set CLONE_PTRACE -- it confuses strace
authorRuss Cox <rsc@golang.org>
Thu, 30 Apr 2009 01:54:44 +0000 (18:54 -0700)
committerRuss Cox <rsc@golang.org>
Thu, 30 Apr 2009 01:54:44 +0000 (18:54 -0700)
R=r
DELTA=4  (3 added, 1 deleted, 0 changed)
OCL=28063
CL=28065

src/runtime/linux/thread.c

index 4375eca9fcb4a3ea110ad9026e2d4b65ab2a9ecf..cc9ba161bfdde9500e5cf15e4d0e8577b972d3b8 100644 (file)
@@ -237,12 +237,14 @@ newosproc(M *m, G *g, void *stk, void (*fn)(void))
        int64 ret;
        int32 flags;
 
+       /*
+        * note: strace gets confused if we use CLONE_PTRACE here.
+        */
        flags = CLONE_PARENT    /* getppid doesn't change in child */
                | CLONE_VM      /* share memory */
                | CLONE_FS      /* share cwd, etc */
                | CLONE_FILES   /* share fd table */
                | CLONE_SIGHAND /* share sig handler table */
-               | CLONE_PTRACE  /* revisit - okay for now */
                | CLONE_THREAD  /* revisit - okay for now */
                ;