From 75e02c65bfd2e49360f55a9962fec84b27fe1411 Mon Sep 17 00:00:00 2001 From: Borislav Petkov Date: Mon, 31 May 2010 23:18:18 +0200 Subject: [PATCH] --- yaml --- r: 199735 b: refs/heads/master c: 2fb750e825b5347de0390315f4284f13709a9856 h: refs/heads/master i: 199733: f12e446e64a4705d31e52916a38c8e341ea201b8 199731: b729c9ea5134d9f5fc0e1fc499a3fe386d321c86 199727: 91554766da1b62cf2c56df15a3b534731759bd5d v: v3 --- [refs] | 2 +- trunk/tools/perf/builtin-record.c | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index 4679145b05c6..934aa63bcf7c 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: dd833d713ccc79e00176eb1b3a6c65638c44e27b +refs/heads/master: 2fb750e825b5347de0390315f4284f13709a9856 diff --git a/trunk/tools/perf/builtin-record.c b/trunk/tools/perf/builtin-record.c index 9bc89050e6f8..dc3435e18bde 100644 --- a/trunk/tools/perf/builtin-record.c +++ b/trunk/tools/perf/builtin-record.c @@ -503,7 +503,6 @@ static int __cmd_record(int argc, const char **argv) { int i, counter; struct stat st; - pid_t pid = 0; int flags; int err; unsigned long waking = 0; @@ -572,7 +571,7 @@ static int __cmd_record(int argc, const char **argv) if (forks) { child_pid = fork(); - if (pid < 0) { + if (child_pid < 0) { perror("failed to fork"); exit(-1); }