summaryrefslogtreecommitdiff
path: root/src/runtime/linux/thread.c
diff options
context:
space:
mode:
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 */
;