diff options
author | Kan-Ru Chen <koster@debian.org> | 2010-08-19 13:45:03 +0800 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-09-06 16:27:23 +0200 |
commit | 2782cc8d4950effbc4407455e72bd4750cef6e11 (patch) | |
tree | 657da8bb498eb62db127e5c221038283dac374c5 /src/ck-sysdeps.h | |
parent | 98e36b216189966f21259bb33f1a25290a9ab23e (diff) |
linux: Use VT_WAITEVENT if available to avoid spawn too many threads
Starting from linux kernel 2.6.32 there is a new ioctl VT_WAITEVENT
which can monitor vt switches and return new vt number.
https://bugs.freedesktop.org/show_bug.cgi?id=17720
Diffstat (limited to 'src/ck-sysdeps.h')
-rw-r--r-- | src/ck-sysdeps.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ck-sysdeps.h b/src/ck-sysdeps.h index 8f22d52..5dd573f 100644 --- a/src/ck-sysdeps.h +++ b/src/ck-sysdeps.h @@ -72,6 +72,8 @@ gboolean ck_activate_console_num (int console_fd, guint num); gboolean ck_wait_for_active_console_num (int console_fd, guint num); +gboolean ck_wait_for_console_switch (int console_fd, + guint *num); G_END_DECLS |