[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Sheflug] pts/x (fwd)



Hi, I started this thread on comp.os.linux.misc, because wasn't sure where
it should go (and I still am not). But maybe somebody here knows an
answer or at least where to look for one...

On Fri, 2 Mar 2001, Alex K wrote:

> "Guennadi V. Liakhovetski" wrote:
> > 
> > one more thing about Linux:-) But - while testing, I noticed - pts/x do
> > not get allocated in order... I.e., when, having only pts/1 I opened
> > another session, it was assigned pts/3 - not pts/2... I thought first -
> > something still was wrong, but I checked another computer - the same
> > behaviour... So, does anybody know why and how these numbers get
> > allocated?
> 
> on my computer, slack7.1 kernel 2.4.0, i believe they get allocated "in
> order".
> ie pts3 after pts2, or pts1 if pts1 is already closed...

Yep, I also thought so, but... it looks like there appear holes in the
sequence (with time): on one of these 2 machines there is a hole at pts/2,
if, say, you have pts/1 and pts/3, then you close pts/1 and start opening
new ones, they appear in the following order: 1,4,5,6,... - 2 never gets
filled... On the other machine I currently have holes at
pts/1,3,4,6... One machine is SuSE6.4 + 2.4.2 kernel, another one is
SuSE7.0 + 2.2.18... What's interesting, when I had that problem with 2
extra lines in `who`, they were pts/2 and pts/4. At one stage I even had 2
lines with pts/4... Then pts/4 somehow miraculously disappeared... to remove
pts/2 I had to re-create /var/run/utmp... Now there's no more extra lines
in who - they are quite consistent, but pts/2 is still blocked... Don't
know though how those holes appeared on the other machine...

Thanks
Guennadi

> 
>   / ak42
> 

___

Dr. Guennadi V. Liakhovetski
Department of Applied Mathematics
University of Sheffield, U.K.
email: G.Liakhovetski [at] sheffield.ac.uk





---------------------------------------------------------------------
Sheffield Linux User's Group - http://www.sheflug.co.uk
To unsubscribe from this list send mail to
- <sheflug-request [at] vuw.ac.nz> - with the word 
 "unsubscribe" in the body of the message. 

  GNU the choice of a complete generation.