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

Re: [Sheflug] pts/x



On Mon, Mar 05, 2001 at 12:38:17AM +0000, Guennadi Liakhovetski wrote:
> Ok, I did have a lot of times, when an ssh session (via a firewall, which
> doesn't matter here, does it?) was cut (ic24 disconnects you every hour),
> but I am sure this happened not only to pts/2. And remember - there's NO
> '2' in /dev/pts/... What else keeps track of pts's? some static array in
> the kernel?...

Yes, it would happen to all the pts', not just two, and even if locked I would expect to see a pts/2. Weird. As for the data structure, no, it's not an array, it's dynamic. It may very well have been an array at some point - a lot of kernel structures were, like the mount list in 2.0, but most stuff is now dynamic.

The only reason (code-wise) that allocating pts/2 would fail would be if init_dev() on that device failed - the other option is that makedev failed, which would be pretty weird. It could be worth putting a printk() in the main allocation loop, to print out something when it considers the case pts/2 - if init_dev() is failing, you'll expect an error code (like -ENODEV), which could give you more information.  

> A completely different query - looks like you (Alex, Will, others?) are
> pretty well familiar with the linux kernel... I want to port a piece of
> code from 2.0.39 to 2.2.x / 2.4.x (it was just lost...). But I can't
> reasonably do it myself... Can (and want?) anybody help me with that? The
> actual author / maintainer of this piece of code (Andre Hedrick) did help
> a lot, but he appears to be too busy these days... Yes, it's about IDE...

Yes, I could have a go if you like. Depends how big a project and how evil a piece of code it is tho' :))

Cheers,

Alex.
-- 
---------------------------------------------------------------------
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.