diff options
author | Halton Huo <halton.huo@sun.com> | 2009-10-16 11:09:58 +0800 |
---|---|---|
committer | Halton Huo <halton.huo@sun.com> | 2009-10-16 11:09:58 +0800 |
commit | 909bb5d08a50384ae2a521b80768c283363dbb86 (patch) | |
tree | 38e7232bc357523bd42754e7d28d2800a603cbbe | |
parent | 4661908c6dc7964c87f698edc7bbeb30ab37c986 (diff) |
Correct tty return value after VT support is integrated in Solaris.
-rw-r--r-- | src/ck-sysdeps-solaris.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/ck-sysdeps-solaris.c b/src/ck-sysdeps-solaris.c index bc3b695..607a3ae 100644 --- a/src/ck-sysdeps-solaris.c +++ b/src/ck-sysdeps-solaris.c @@ -180,27 +180,8 @@ stat2proc (pid_t pid, if (tty_maj == 15) { snprintf (P->tty_text, sizeof P->tty_text, "/dev/vt/%u", tty_min); } - if (tty_maj == 24) { - snprintf (P->tty_text, sizeof P->tty_text, "/dev/pts/%u", tty_min); - } - if (P->tty == NO_TTY_VALUE) { -#ifdef HAVE_SYS_VT_H memcpy (P->tty_text, " ? ", 8); -#else - /* - * This is a bit of a hack. On Solaris, pre-VT integration, the - * Xorg process is not assigned a TTY. So, just assign the value - * to "/dev/console" if running without VT support. This will - * allow people using Solaris pre-VT integration to use - * ConsoleKit. - */ - memcpy (P->tty_text, "/dev/console", 12); -#endif - } - - if (P->tty == DEV_ENCODE(0,0)) { - memcpy (P->tty_text, "/dev/console", 12); } if (P->pid != pid) { |