summaryrefslogtreecommitdiff
path: root/src/core/unit.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2017-02-28 18:27:42 +0100
committerLennart Poettering <lennart@poettering.net>2017-02-28 18:35:05 +0100
commita625def6ea3e6fb1ad78f40a9ff4454c4da79aca (patch)
treeec20e626f86241080c028e1f180940d9463bed83 /src/core/unit.c
parentae572acd62fe80bbcf242e02e4947900682ded16 (diff)
run: also pin unit when we we are in --pty mode
Since 95f1d6bfecde60b245fae1ab0313b550201e7880 we'll subscribe to unit signals to figure out when to disconnect the pty. But that can only work correctly if we actually subscribe to the unit's signals. Hence, explicitly pin (and thus subscribe to) the unit we just created not only in --wait mode but also in --pty mode. Or to say this differently: we need to pin the unit in the same cases as we install the signal match. 95f1d6bfecde60b245fae1ab0313b550201e7880 forgot to do that. This is relevant to make sure systemd-run works correctly in --user mode, and correctly exits when the spawned service dies. To test: systemd-run --user -t /bin/bash And then press ^D. This will hang before this change, but exit cleanly after it.
Diffstat (limited to 'src/core/unit.c')
0 files changed, 0 insertions, 0 deletions