The landed patch was a somewhat "lite" and invasive version of introducing the concept.
What you describe is how systemd-run does it.
But there's a much simpler solution, we can just use startTransientService(execLine) instead of startTransientScope(somePid) then it all becomes someone else's problem.
There is a theoretical race, yes.
The landed patch was a somewhat "lite" and invasive version of introducing the concept.
What you describe is how systemd-run does it.
But there's a much simpler solution, we can just use startTransientS ervice( execLine) instead of startTransientS cope(somePid) then it all becomes someone else's problem.
See:
https:/ /invent. kde.org/ frameworks/ kio/-/merge_ requests/ 71