<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-size:small">Richard Palethorpe <<a href="mailto:rpalethorpe@suse.de">rpalethorpe@suse.de</a>> wrote:<br></div></div><div class="gmail_quote"><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
>> +<br>
>> + _cgroup_state=$(tst_cgctl require "$ctrl" $$)<br>
>> +<br>
>> + [ "$_cgroup_state" = "" ] && tst_brk TBROK "cgroup_require: No<br>
>state was set after call. Controller '$ctrl' maybe does not exist?"<br>
<br>
Perhaps we can just check the return status of tst_cgctl and exit the<br>
script if it is >0?<br></blockquote><div><br></div><div class="gmail_default" style="font-size:small">That should be work, but we need to check the _cgrou_state</div><div class="gmail_default" style="font-size:small">at other places because many shell APIs require getting Cgroup</div><div class="gmail_default" style="font-size:small">info, I guess this does not make things more easily if check the</div><div class="gmail_default" style="font-size:small">return value only one time.</div><div class="gmail_default" style="font-size:small"><br></div></div><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>Regards,<br></div><div>Li Wang<br></div></div></div></div>