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
11f9c039
Commit
11f9c039
authored
Jul 12, 2010
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix build
R=gri CC=golang-dev
https://golang.org/cl/1813042
parent
b6850fe7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
12 deletions
+11
-12
src/pkg/debug/proc/proc_linux.go
src/pkg/debug/proc/proc_linux.go
+11
-12
No files found.
src/pkg/debug/proc/proc_linux.go
View file @
11f9c039
...
...
@@ -153,7 +153,7 @@ type process struct {
debugEvents
chan
*
debugEvent
debugReqs
chan
*
debugReq
stopReq
chan
os
.
Error
transitionHandlers
*
vector
.
Vector
transitionHandlers
vector
.
Vector
err
os
.
Error
}
...
...
@@ -472,8 +472,8 @@ func (t *thread) setState(newState threadState) {
return
}
t
.
proc
.
transitionHandlers
=
n
ew
(
vector
.
Vector
)
for
_
,
h
:=
range
handlers
.
Data
()
{
t
.
proc
.
transitionHandlers
=
n
il
for
_
,
h
:=
range
handlers
{
h
:=
h
.
(
*
transitionHandler
)
h
.
handle
(
t
,
oldState
,
newState
)
}
...
...
@@ -738,7 +738,7 @@ func (p *process) monitor() {
// Abort waiting handlers
// TODO(austin) How do I stop the wait threads?
for
_
,
h
:=
range
p
.
transitionHandlers
.
Data
()
{
for
_
,
h
:=
range
p
.
transitionHandlers
{
h
:=
h
.
(
*
transitionHandler
)
h
.
onErr
(
err
)
}
...
...
@@ -1256,7 +1256,6 @@ func newProcess(pid int) *process {
debugEvents
:
make
(
chan
*
debugEvent
),
debugReqs
:
make
(
chan
*
debugReq
),
stopReq
:
make
(
chan
os
.
Error
),
transitionHandlers
:
new
(
vector
.
Vector
),
}
go
p
.
monitor
()
...
...
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