From: Arnaldo Carvalho de Melo Date: Mon, 22 Mar 2010 16:10:29 +0000 (-0300) Subject: perf tools: Exit browser before printing usage when unkown option passed X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=478b0973bf8c90db3677fbb8d812e2bdefc43d9b;p=openwrt%2Fstaging%2Fblogic.git perf tools: Exit browser before printing usage when unkown option passed If not the screen will get garbled when using newt. Signed-off-by: Arnaldo Carvalho de Melo Cc: Frédéric Weisbecker Cc: Mike Galbraith Cc: Peter Zijlstra Cc: Paul Mackerras LKML-Reference: <1269274229-20442-5-git-send-email-acme@infradead.org> Signed-off-by: Ingo Molnar --- diff --git a/tools/perf/util/parse-options.c b/tools/perf/util/parse-options.c index efebd5b476b3..79dfa0c34b3c 100644 --- a/tools/perf/util/parse-options.c +++ b/tools/perf/util/parse-options.c @@ -500,6 +500,7 @@ int usage_with_options_internal(const char * const *usagestr, void usage_with_options(const char * const *usagestr, const struct option *opts) { + exit_browser(false); usage_with_options_internal(usagestr, opts, 0); exit(129); }