summaryrefslogtreecommitdiff
path: root/src/runtime/linux/thread.c
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2009-04-29 18:54:44 -0700
committerRuss Cox <rsc@golang.org>2009-04-29 18:54:44 -0700
commitc7c0991a80e7d52037996ecff46aa8f8bb6d616f (patch)
tree088ecddbc116a4f31d286205c094cfadca0496ad /src/runtime/linux/thread.c
parent270190d0c3aa634d1a219f220a12513b818008c4 (diff)
downloadgolang-c7c0991a80e7d52037996ecff46aa8f8bb6d616f.tar.gz
don't set CLONE_PTRACE -- it confuses strace
R=r DELTA=4 (3 added, 1 deleted, 0 changed) OCL=28063 CL=28065
Diffstat (limited to 'src/runtime/linux/thread.c')
-rw-r--r--src/runtime/linux/thread.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/runtime/linux/thread.c b/src/runtime/linux/thread.c
index 4375eca9f..cc9ba161b 100644
--- a/src/runtime/linux/thread.c
+++ b/src/runtime/linux/thread.c
@@ -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 */
;