public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: hpa@zytor.com (H. Peter Anvin)
To: linux-kernel@vger.kernel.org
Subject: Re: something funny about tty's on 2.6.4-rc1-mm1
Date: Tue, 2 Mar 2004 05:47:27 +0000 (UTC)	[thread overview]
Message-ID: <c2175f$6hn$1@terminus.zytor.com> (raw)
In-Reply-To: 20040301184512.GA21285@hobbes.itsari.int

Followup to:  <20040301184512.GA21285@hobbes.itsari.int>
By author:    Nuno Monteiro <nuno@itsari.org>
In newsgroup: linux.dev.kernel
> 
> I know for a fact that I don't have 157 logged in users (well, there's  
> only 45 processes running right now), and shouldn't pts' be recycled, and  
> a lower number be assigned? The last kernel I ran was 2.6.3, and none of  
> this happened.
> 
> My config is:
> 
> CONFIG_UNIX98_PTYS=y
> CONFIG_LEGACY_PTYS=y
> CONFIG_LEGACY_PTY_COUNT=512
> 
> and this is a plain jane static /dev -- not devfs nor udev. Despite the  
> supposedly 157 users logged in, /dev/pts only contains '358', which is  
> the one allocated to this instance of aterm right now.
> 
> nuno@hobbes:~$ ls -l /dev/pts
> total 0
> crw--w----    1 nuno     users    136, 102 Mar  1 18:41 358
> 
> In the mean time I'll fall back to 2.6.3.
> 

No need to, as there is no error (except that you need a newer libc or
ls to properly show the device number.)

As RBJ said, ptys are now recycled in pid-like fashion, which means
numbers won't be reused until wraparound happens.  This is good for
security/fault tolerance, at least to some minor degree.

	-hpa


  parent reply	other threads:[~2004-03-02  5:47 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-01 18:45 something funny about tty's on 2.6.4-rc1-mm1 Nuno Monteiro
2004-03-01 19:09 ` Richard B. Johnson
2004-03-02  5:47 ` H. Peter Anvin [this message]
2004-03-02 14:52   ` James H. Cloos Jr.
2004-03-02 15:02     ` Richard B. Johnson
2004-03-02 17:47       ` James H. Cloos Jr.
2004-03-02 16:54     ` H. Peter Anvin
2004-03-02 22:08       ` Andrew Morton
2004-03-03  2:29         ` H. Peter Anvin
  -- strict thread matches above, loose matches on Subject: below --
2004-03-02 19:04 Albert Cahalan
2004-03-02 19:54 ` H. Peter Anvin
2004-03-02 22:46 ` Edgar Toernig
2004-03-02 23:59   ` H. Peter Anvin
2004-03-03  4:12 Albert Cahalan

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='c2175f$6hn$1@terminus.zytor.com' \
    --to=hpa@zytor.com \
    --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