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
67dc2ae3
Commit
67dc2ae3
authored
Dec 01, 2009
by
Rob Pike
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
a couple of usage fixups in prof
R=rsc
https://golang.org/cl/161050
parent
db18ce2f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
main.c
src/cmd/prof/main.c
+7
-1
No files found.
src/cmd/prof/main.c
View file @
67dc2ae3
...
...
@@ -462,8 +462,14 @@ main(int argc, char *argv[])
}
if
(
argc
>
0
)
file
=
argv
[
0
];
else
if
(
pid
)
else
if
(
pid
)
{
file
=
proctextfile
(
pid
);
if
(
file
==
NULL
)
{
fprint
(
2
,
"prof: can't find file for pid %d: %r
\n
"
,
pid
);
fprint
(
2
,
"prof: on Darwin, need to provide file name explicitly
\n
"
);
exit
(
1
);
}
}
fd
=
open
(
file
,
0
);
if
(
fd
<
0
)
{
fprint
(
2
,
"prof: can't open %s: %r
\n
"
,
file
);
...
...
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