run: synchronously wait until the scope unit we create is started
authorLennart Poettering <lennart@poettering.net>
Tue, 28 Apr 2015 10:21:31 +0000 (12:21 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 28 Apr 2015 10:21:31 +0000 (12:21 +0200)
commitde158ed22db60e3a6654557fa4aa72f7248550af
treeab700ce566b4fba8d899ece57037ea2cd96efb8f
parentdd305ec9c6c2ef6e0b5e43de388a98825385b359
run: synchronously wait until the scope unit we create is started

Otherwise it might happen that by the time PID 1 adds our process to the
scope unit the process might already have died, if the process is
short-running (such as an invocation to /bin/true).

https://bugs.freedesktop.org/show_bug.cgi?id=86520
src/libsystemd/sd-bus/bus-util.c
src/libsystemd/sd-bus/bus-util.h
src/run/run.c