[LTP] [PATCH 6/6] controllers: Expand cgroup_lib shell library
Li Wang
liwang@redhat.com
Tue Jan 11 11:10:25 CET 2022
> > +cgroup_cleanup()
> > +{
> > + [ "$_cgroup_state" = "" ] && return 0
> ?> +
> > + tst_cgctl cleanup "$_cgroup_state"
>
> I don't understand what exactly the $_cgroup_state do here,
> isn't that just 0 or 1 which returned by 'tst_cgctl require "$ctrl" $$' ?
Ah, I got it, that comes from a string printed by tst_cgroup_print_config.
(Sorry I was read these codes from top to down.)
--
Regards,
Li Wang
More information about the ltp
mailing list