On Mon, Jul 06, 2009 at 11:06:39AM +0200, Enrico Zini wrote: > The relevant gdm code seems to be in daemon/getvt.c, functions > get_free_vt_sys and get_free_vt_consio, wrapped by > gdm_get_empty_vt_argument. The difference between the two > implementations depends on the operating system: [...]
I will probably cross-reference that code with openvt from console-tools and start with only one version of code. If other platforms need to be supported for which the existing code won't be enough, we'll see about it. > I could open the vt in the parent process then close it in the session > process; since the session process is called by xinit, to do so I need > to leave the fd open for the child process and pass its number to the > session process in an env var. That is doable. This is actually not needed, I realised. I can just do the vt allocation in the supervisor process, and keep the vt open until the supervisor ends. Ciao, Enrico -- GPG key: 4096R/E7AD5568 2009-05-08 Enrico Zini <[email protected]>
signature.asc
Description: Digital signature

