Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
Commits
89f8238a
Commit
89f8238a
authored
Apr 29, 2009
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
don't set CLONE_PTRACE -- it confuses strace
R=r DELTA=4 (3 added, 1 deleted, 0 changed) OCL=28063 CL=28065
parent
d2e42f3e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
src/runtime/linux/thread.c
src/runtime/linux/thread.c
+3
-1
No files found.
src/runtime/linux/thread.c
View file @
89f8238a
...
...
@@ -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 */
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment