From f551717e1830e86a8ccf5312f79ce8882af9f352 Mon Sep 17 00:00:00 2001 From: Simon Zheng Date: Tue, 19 Feb 2008 11:34:15 -0500 Subject: improve supporting Solaris VT switching Here's a patch for ConsoleKit to improve supporting Solaris VT. Two changes are made. - Solaris supports synchronous event notification in STREAMS. Using this, we can avoid creating many threads for idle VTs. By setting the S_MSG flag in an I_SETSIG STREAMS ioctl, applications can get a synchronous notification of VT switching. In other words, these processes are able to receive a SIGPOLL signal when a VT switching succeeds. - Change a little command line of getting maximum vt console numbers. --- src/ck-sysdeps-solaris.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ck-sysdeps-solaris.c') diff --git a/src/ck-sysdeps-solaris.c b/src/ck-sysdeps-solaris.c index adcb70c..3f71c6d 100644 --- a/src/ck-sysdeps-solaris.c +++ b/src/ck-sysdeps-solaris.c @@ -364,7 +364,7 @@ ck_get_max_num_consoles (guint *num) error = NULL; svcprop_stdout = NULL; status = 0; - res = g_spawn_command_line_sync ("/usr/bin/svcprop -p options/vtnodecount vtdaemon", + res = g_spawn_command_line_sync ("/usr/bin/svcprop -p options/nodecount vtdaemon", &svcprop_stdout, NULL, &status, -- cgit