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
b04209ca
Commit
b04209ca
authored
Mar 15, 2011
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debug/proc: fix build
R=r CC=golang-dev
https://golang.org/cl/4273060
parent
bc34cda7
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
src/pkg/debug/proc/proc_darwin.go
src/pkg/debug/proc/proc_darwin.go
+1
-1
src/pkg/debug/proc/proc_freebsd.go
src/pkg/debug/proc/proc_freebsd.go
+1
-1
src/pkg/debug/proc/proc_windows.go
src/pkg/debug/proc/proc_windows.go
+1
-1
src/pkg/exp/ogle/cmd.go
src/pkg/exp/ogle/cmd.go
+1
-1
No files found.
src/pkg/debug/proc/proc_darwin.go
View file @
b04209ca
...
...
@@ -12,6 +12,6 @@ func Attach(pid int) (Process, os.Error) {
return
nil
,
os
.
NewError
(
"debug/proc not implemented on OS X"
)
}
func
ForkExec
(
argv0
string
,
argv
[]
string
,
envv
[]
string
,
dir
string
,
fd
[]
*
os
.
File
)
(
Process
,
os
.
Error
)
{
func
StartProcess
(
argv0
string
,
argv
[]
string
,
attr
*
os
.
ProcAttr
)
(
Process
,
os
.
Error
)
{
return
Attach
(
0
)
}
src/pkg/debug/proc/proc_freebsd.go
View file @
b04209ca
...
...
@@ -12,6 +12,6 @@ func Attach(pid int) (Process, os.Error) {
return
nil
,
os
.
NewError
(
"debug/proc not implemented on FreeBSD"
)
}
func
ForkExec
(
argv0
string
,
argv
[]
string
,
envv
[]
string
,
dir
string
,
fd
[]
*
os
.
File
)
(
Process
,
os
.
Error
)
{
func
StartProcess
(
argv0
string
,
argv
[]
string
,
attr
*
os
.
ProcAttr
)
(
Process
,
os
.
Error
)
{
return
Attach
(
0
)
}
src/pkg/debug/proc/proc_windows.go
View file @
b04209ca
...
...
@@ -12,6 +12,6 @@ func Attach(pid int) (Process, os.Error) {
return
nil
,
os
.
NewError
(
"debug/proc not implemented on windows"
)
}
func
ForkExec
(
argv0
string
,
argv
[]
string
,
envv
[]
string
,
dir
string
,
fd
[]
*
os
.
File
)
(
Process
,
os
.
Error
)
{
func
StartProcess
(
argv0
string
,
argv
[]
string
,
attr
*
os
.
ProcAttr
)
(
Process
,
os
.
Error
)
{
return
Attach
(
0
)
}
src/pkg/exp/ogle/cmd.go
View file @
b04209ca
...
...
@@ -160,7 +160,7 @@ func cmdLoad(args []byte) os.Error {
}
else
{
fname
=
parts
[
0
]
}
tproc
,
err
=
proc
.
ForkExec
(
fname
,
parts
,
os
.
Environ
(),
""
,
[]
*
os
.
File
{
os
.
Stdin
,
os
.
Stdout
,
os
.
Stderr
})
tproc
,
err
=
proc
.
StartProcess
(
fname
,
parts
,
&
os
.
ProcAttr
{
Files
:
[]
*
os
.
File
{
os
.
Stdin
,
os
.
Stdout
,
os
.
Stderr
}
})
if
err
!=
nil
{
return
err
}
...
...
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