mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Valdis.Kletnieks@vt.edu
To: Lennart Poettering <lennart@poettering.net>
Cc: linux-kernel@vger.kernel.org, Alan Cox <alan@lxorguk.ukuu.org.uk>,
	William Jon McCann <jmccann@redhat.com>
Subject: Re: [PATCH] vt: extend VT_WAITACTIVE ioctl to allow waiting until a specific VT becomes inactive
Date: Tue, 30 Jun 2009 08:58:45 -0400	[thread overview]
Message-ID: <21694.1246366725@turing-police.cc.vt.edu> (raw)
In-Reply-To: Your message of "Tue, 30 Jun 2009 02:00:04 +0200." <20090630000003.GA21004@omega>

[-- Attachment #1: Type: text/plain, Size: 529 bytes --]

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)

[-- Attachment #2: Type: application/pgp-signature, Size: 226 bytes --]

      parent reply	other threads:[~2009-06-30 14:37 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-30  0:00 Lennart Poettering
2009-06-30  8:34 ` Alan Cox
2009-06-30 12:58 ` Valdis.Kletnieks [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=21694.1246366725@turing-police.cc.vt.edu \
    --to=valdis.kletnieks@vt.edu \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=jmccann@redhat.com \
    --cc=lennart@poettering.net \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®