Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
104d0246
Commit
104d0246
authored
Jun 29, 2009
by
Rob Pike
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix gobuild bug
R=rsc DELTA=4 (3 added, 0 deleted, 1 changed) OCL=30845 CL=30845
parent
b2871b72
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
util.go
src/cmd/gobuild/util.go
+4
-1
No files found.
src/cmd/gobuild/util.go
View file @
104d0246
...
...
@@ -63,7 +63,8 @@ func init() {
for
i
,
v
:=
range
binaries
{
var
s
string
;
if
s
,
err
:=
exec
.
LookPath
(
v
);
err
!=
nil
{
var
err
os
.
Error
;
if
s
,
err
=
exec
.
LookPath
(
v
);
err
!=
nil
{
fatal
(
"cannot find binary %s"
,
v
);
}
bin
[
v
]
=
s
;
...
...
@@ -101,6 +102,7 @@ func run(argv []string, flag int) (ok bool) {
defer
r
.
Close
();
w
.
Close
();
if
err
!=
nil
{
fmt
.
Fprintln
(
os
.
Stderr
,
err
);
return
false
;
}
...
...
@@ -123,6 +125,7 @@ func run(argv []string, flag int) (ok bool) {
}
waitmsg
,
err
:=
os
.
Wait
(
pid
,
0
);
if
err
!=
nil
{
fmt
.
Fprintln
(
os
.
Stderr
,
err
);
return
false
;
}
return
waitmsg
.
Exited
()
&&
waitmsg
.
ExitStatus
()
==
0
;
...
...
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