On 03/11/2011 12:01 PM, Ivana Hutarova Varekova wrote: > this patch adds -h option to cgclassify tool > > > Signed-off-by: Ivana Hutarova Varekova <varek...@redhat.com> Acked-By: Jan Safranek <jsafr...@redhat.com>
> --- > > src/tools/cgclassify.c | 6 +++++- > 1 files changed, 5 insertions(+), 1 deletions(-) > > diff --git a/src/tools/cgclassify.c b/src/tools/cgclassify.c > index c27249f..397b725 100644 > --- a/src/tools/cgclassify.c > +++ b/src/tools/cgclassify.c > @@ -129,8 +129,12 @@ int main(int argc, char *argv[]) > } > > memset(cgroup_list, 0, sizeof(cgroup_list)); > - while ((c = getopt_long(argc, argv, "+g:s", longopts, NULL)) > 0) { > + while ((c = getopt_long(argc, argv, "+g:sh", longopts, NULL)) > 0) { > switch (c) { > + case 'h': > + usage(0, argv[0]); > + exit(0); > + break; > case 'g': > ret = parse_cgroup_spec(cgroup_list, optarg, > CG_HIER_MAX); > > > ------------------------------------------------------------------------------ > Colocation vs. Managed Hosting > A question and answer guide to determining the best fit > for your organization - today and in the future. > http://p.sf.net/sfu/internap-sfd2d > _______________________________________________ > Libcg-devel mailing list > Libcg-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/libcg-devel ------------------------------------------------------------------------------ Colocation vs. Managed Hosting A question and answer guide to determining the best fit for your organization - today and in the future. http://p.sf.net/sfu/internap-sfd2d _______________________________________________ Libcg-devel mailing list Libcg-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libcg-devel