[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox
Subject: Re: [PATCH] top: provide cmdline argument '-H' to enable thread scanning by default
From: Xabier Oneca -- xOneca <xoneca () gmail ! com>
Date: 2019-03-29 7:28:39
Message-ID: CACkgH736riTtma7yr1Wk91n1GfNwhLNA2ppqeewTwyuhi9aayg () mail ! gmail ! com
[Download RAW message or body]
Hi Thomas,
> diff --git a/procps/top.c b/procps/top.c
> index 625409755..59b0adf04 100644
> --- a/procps/top.c
> +++ b/procps/top.c
> @@ -1110,7 +1114,7 @@ int top_main(int argc UNUSED_PARAM, char **argv)
>
> /* all args are options; -n NUM */
> make_all_argv_opts(argv); /* options can be specified w/o dash */
> - col = getopt32(argv, "d:n:b"IF_FEATURE_TOPMEM("m"), &str_interval, &str_iterations);
> + col = getopt32(argv, "d:n:b"IF_FEATURE_TOPMEM("m")"H", &str_interval, &str_iterations);
Now -H is ignored if FEATURE_SHOW_THREADS is not enabled (instead of
showing error & usage). Is it what we want? Maybe. But then I would
write a comment clearing this situation.
I personally prefer the error & usage.
Cheers,
Xabier Oneca_,,_
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic