summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@googlemail.com>2012-12-06 14:18:57 +0100
committerDavid Herrmann <dh.herrmann@googlemail.com>2012-12-06 14:18:57 +0100
commit4ceb557ecbd598fce5a033323333f911e5f80eed (patch)
tree38f286169c9ab7c8bb989ea5097071b695e81376 /tests
parent3cebf533fc9f65bcacbd527698223cf3f2b8f0f5 (diff)
kmscon: run only on VT-less seats in listen-mode
If we run in listen mode, we are supposed to take over a seat. If a seat supports VTs (like kernel VTs or kmscon cdev fake VTs) we assume that there is some manager for these VTs (the one who created them). Therefore, there is no need to run kmscon in listen mode on these seats. Instead, you should run kmscon in default mode on these seats. We enforce this limitation because if the VT-master on those seats dies and causes a HUP, they have no way to notify us when they startup again. Therefore, this kind of setup is broken. Furthermore, no-one would every want such setups. Instead use the startup mechanism of the VT/seat-manager to start kmscon in default mode on those seats. Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/test_vt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_vt.c b/tests/test_vt.c
index dd6ee67..25ffe5e 100644
--- a/tests/test_vt.c
+++ b/tests/test_vt.c
@@ -116,7 +116,8 @@ int main(int argc, char **argv)
if (ret)
goto err_vtm;
- ret = uterm_vt_allocate(vtm, &vt, "seat0", input, vtpath, NULL, NULL);
+ ret = uterm_vt_allocate(vtm, &vt, UTERM_VT_FAKE | UTERM_VT_REAL,
+ "seat0", input, vtpath, NULL, NULL);
if (ret)
goto err_input;