run: when waiting for unit, also check if no job is pending anymore
authorLennart Poettering <lennart@poettering.net>
Tue, 26 May 2020 14:22:36 +0000 (16:22 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 27 May 2020 13:01:07 +0000 (15:01 +0200)
commit2b5f708985a0d175f86a57d4e8e2c8eccfb73bd6
treeb65bc644fa06dbf6e739242eea976aa335107750
parent518a9bd689fe83f29cb97e00be184f1417d2c291
run: when waiting for unit, also check if no job is pending anymore

This is a fix-up for a7c71d214c37797d82de2f66cfe0a0a79c3a5c92: since we
now don't wait for the job to finish anymore right after enqueuing it,
we should not exit our ptyfwd logic before the unit is back to inactive
*and* no job pending anymore.
src/run/run.c