[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <21694.1246366725@turing-police.cc.vt.edu>
Date: Tue, 30 Jun 2009 08:58:45 -0400
From: Valdis.Kletnieks@...edu
To: Lennart Poettering <lennart@...ttering.net>
Cc: linux-kernel@...r.kernel.org, Alan Cox <alan@...rguk.ukuu.org.uk>,
William Jon McCann <jmccann@...hat.com>
Subject: Re: [PATCH] vt: extend VT_WAITACTIVE ioctl to allow waiting until a specific VT becomes inactive
On Tue, 30 Jun 2009 02:00:04 +0200, Lennart Poettering said:
> ConsoleKit would probably just call it in a loop like this:
>
> for (;;) {
> struct vt_stat st;
> ioctl(0, VT_GETSTATE, &st);
> printf("console %s is active.\n", st.v_active);
> ioctl(0, VT_WAITACTIVE, (signed long) - st.v_active);
> }
We will include a documented way for ConsoleKit and similar to be able
to determine if the kernel has this feature, right? (If older kernels
return a -EBOGUS for ioctl(0,VT_WAITACTIVE,-1) that's probably good enough)
Content of type "application/pgp-signature" skipped
Powered by blists - more mailing lists