[Bug 285394] sysutils/consolekit2 seems to use wrong tty
- In reply to: bugzilla-noreply_a_freebsd.org: "[Bug 285394] sysutils/consolekit2 seems to use wrong tty"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 18 Mar 2025 13:34:23 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=285394
--- Comment #10 from Andriy Gapon <avg@FreeBSD.org> ---
(In reply to Gleb Popov from comment #8)
Maybe upstream ConsoleKit code changed since those times.
What I see proposed in bug 221452, in comment 39: use /dev/console instead of
/dev/ttyv0 (at least, that's the verbiage).
I am not sure what kind of difference that made.
What is happening now: /dev/tty (controlling terminal) is used.
For reference, this is what the removed patch was:
--- a/src/ck-sysdeps-unix.c
+++ b/src/ck-sysdeps-unix.c
@@ -308,6 +308,13 @@ ck_get_a_console_fd (void)
}
#endif
+#if defined(__FreeBSD__)
+ fd = ck_open_a_console ("/dev/ttyv0");
+ if (fd >= 0) {
+ goto done;
+ }
+#endif
+
#if defined(__NetBSD__)
fd = ck_open_a_console ("/dev/ttyE0");
if (fd >= 0) {
--
You are receiving this mail because:
You are the assignee for the bug.