<div dir="ltr"><div>I respond to myself to the first part of my question.<br></div><div><br></div><div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
If you want to synchronize in the cgroup creation to complete just<br>
wait for the JobRemoved bus signal for the job returned by<br>
StartTransientUnit().<br>
<br></blockquote><div><br></div><div>StartTransientUnit returns a string to a job object path. To call JobRemoved I need the job id, so the easier way to get it is to strip the last part of the returned string from StartTransientUnit job object path. Am I right?</div><div><br></div></div></div></div></blockquote><div><br></div><div>False, the JobRemoved signal returns the id, job, unit and result. To wait for JobRemoved only needs a matching rule for this signal. The matching rule can just contain the path. In fact, nothing else than strings can be matched in a rule, so I may be only able to use the path.<br></div><div><br></div><div class="gmail_quote"><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">
</blockquote></div></div></div>