Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 147545
b: refs/heads/master
c: ef65b2a
h: refs/heads/master
i:
  147543: e467ba9
v: v3
  • Loading branch information
Mike Galbraith authored and Ingo Molnar committed May 27, 2009
1 parent 426f1fa commit 2b329d7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a930d2c0d0a685ab955472b08baad041cc5edb4a
refs/heads/master: ef65b2a0b3a2f82850144df6e6a7796f6d66da6b
4 changes: 2 additions & 2 deletions trunk/Documentation/perf_counter/builtin-record.c
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ static int __cmd_record(int argc, const char **argv)
signal(SIGCHLD, sig_handler);
signal(SIGINT, sig_handler);

if (target_pid == -1) {
if (target_pid == -1 && argc) {
pid = fork();
if (pid < 0)
perror("failed to fork");
Expand Down Expand Up @@ -430,7 +430,7 @@ int cmd_record(int argc, const char **argv, const char *prefix)
create_events_help(events_help_msg);

argc = parse_options(argc, argv, options, record_usage, 0);
if (!argc)
if (!argc && target_pid == -1 && !system_wide)
usage_with_options(record_usage, options);

if (!nr_counters) {
Expand Down

0 comments on commit 2b329d7

Please sign in to comment.