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
a626adce
Commit
a626adce
authored
Dec 22, 2011
by
Brad Fitzpatrick
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
os: update package location of exec to os/exec in comments
R=golang-dev, rsc CC=golang-dev
https://golang.org/cl/5503065
parent
0b702937
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/pkg/os/exec_posix.go
src/pkg/os/exec_posix.go
+2
-2
No files found.
src/pkg/os/exec_posix.go
View file @
a626adce
...
...
@@ -24,7 +24,7 @@ func (sig UnixSignal) String() string {
// StartProcess starts a new process with the program, arguments and attributes
// specified by name, argv and attr.
//
// StartProcess is a low-level interface. The exec package provides
// StartProcess is a low-level interface. The
os/
exec package provides
// higher-level interfaces.
func
StartProcess
(
name
string
,
argv
[]
string
,
attr
*
ProcAttr
)
(
p
*
Process
,
err
error
)
{
sysattr
:=
&
syscall
.
ProcAttr
{
...
...
@@ -56,7 +56,7 @@ func (p *Process) Kill() error {
// If successful, Exec never returns. If it fails, it returns an error.
//
// To run a child process, see StartProcess (for a low-level interface)
// or the exec package (for higher-level interfaces).
// or the
os/
exec package (for higher-level interfaces).
func
Exec
(
name
string
,
argv
[]
string
,
envv
[]
string
)
error
{
if
envv
==
nil
{
envv
=
Environ
()
...
...
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