summaryrefslogtreecommitdiffstats
path: root/src/ck-sysdeps-solaris.c
diff options
context:
space:
mode:
authorSimon Zheng <Simon.Zheng@sun.com>2008-02-19 11:34:15 -0500
committerWilliam Jon McCann <jmccann@redhat.com>2008-02-19 11:34:15 -0500
commitf551717e1830e86a8ccf5312f79ce8882af9f352 (patch)
tree10acad82364ec60303f2de04a75cb4f84f993103 /src/ck-sysdeps-solaris.c
parent94d4dd225c6d161411f33396aec23a33a6661da6 (diff)
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.
Diffstat (limited to 'src/ck-sysdeps-solaris.c')
-rw-r--r--src/ck-sysdeps-solaris.c2
1 files changed, 1 insertions, 1 deletions
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,