chiark / gitweb /
terminal: enable sessions in evcat after taking control
authorDavid Herrmann <dh.herrmann@gmail.com>
Thu, 11 Sep 2014 13:28:37 +0000 (15:28 +0200)
committerDavid Herrmann <dh.herrmann@gmail.com>
Thu, 11 Sep 2014 13:28:37 +0000 (15:28 +0200)
commitc600022303a10155f48a8eab59c6c0ae1b797699
tree5671d3d82eee95eef032b2e3ce50a3675fb23b63
parent1f3752c81ad5d746f90db751425c39c3ed0970ab
terminal: enable sessions in evcat after taking control

If we enable a session, any probed device might get immediately enabled.
This might cause TakeDevice() messages to be sent before we call
TakeControl(). Therefore, enable sessions *after* sending TakeControl() so
we always succeed if TakeControl() succeeds.
src/libsystemd-terminal/evcat.c