perf daemon: Return from kill functions
authorJiri Olsa <jolsa@kernel.org>
Sat, 20 Mar 2021 22:10:13 +0000 (23:10 +0100)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 24 Mar 2021 13:24:00 +0000 (10:24 -0300)
commit9f177fd8f20b46bbd76dbcc90184caf3b8548a9f
tree51b8f15c89da2cd60402c2734eeaebcd9ab568ae
parent1833b64fee1032d1f48afaa3956bc0ea6b10d5e0
perf daemon: Return from kill functions

We should return correctly and warn in both daemon_session__kill() and
daemon__kill() after we tried everything to kill sessions.  The current
code will keep on looping and waiting.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Michael Petlan <mpetlan@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lore.kernel.org/lkml/20210320221013.1619613-2-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-daemon.c