Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 01 Oct 2025 16:55:46 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 289812] [vt] Make frsig field optional in VT_SETMODE.
Message-ID:  <bug-289812-227-hnaNHCESXI@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-289812-227@https.bugs.freebsd.org/bugzilla/>

index | next in thread | previous in thread | raw e-mail

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=289812

--- Comment #6 from Ed Maste <emaste@freebsd.org> ---
It looks like Linux doesn't care, it just passes whatever was provided in
acqsig or relsig to kill_pid(). For us the Linuxulator behaviour makes sense
because it has to translate the requested Linux signal to FreeBSD and there is
no mapping for an invalid signal.

mpv currently has `struct vt_mode vt_mode = { 0 };` and I'd expect that sort of
idiom to be pretty common.

sddm has

            vt_mode setModeRequest { };
            bool ok = true;

            setModeRequest.mode = VT_PROCESS;
            setModeRequest.relsig = RELEASE_DISPLAY_SIGNAL;
            setModeRequest.acqsig = ACQUIRE_DISPLAY_SIGNAL;

            if (ioctl(fd, VT_SETMODE, &setModeRequest) < 0) {
                qDebug() << "Failed to manage VT manually:" << strerror(errno);
                ok = false;
            }

-- 
You are receiving this mail because:
You are the assignee for the bug.

home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-289812-227-hnaNHCESXI>