Interesting things Ive found with this, thought someone on the list might
eventually have a similar problem to what I had, so here is the fix:

(Interestingly enough this was _NOT_ nessasary under jail) 

In screen's config.h the following exists:

/*
 * If your system has the new format /etc/ttys (like 4.3 BSD) and the
 * getttyent(3) library functions, define GETTTYENT.
 */
#define GETTTYENT 1

if you change that to #define GETTTYENT 0 (I.E you undefine the option) it
works 100% and will give you all your new terminals.

As a matter of interest, if anyone here can explain to me why this fixed
my problem, or perhaps let me know if there is a problem with
getttyent() under jail it would be much appreciated.

Thanks

Andrew Alston


On Tue, 13 Feb 2001, Neil Blakey-Milner wrote:

> On Tue 2001-02-13 (07:09), Lists Account wrote:
> > Ok this is getting a bit strange.  Interestingly enough ssh works 100%
> > with my method of tty creation, having created (from outside the
> > jail) ttyp32 - ttyp100 (with the minor/major numbers set as 5,XX where XX
> > is ttypXX), and a mknod type of c, ssh allocates ttys fine, however screen
> > still tells me there are no ttys available?
> > 
> > Any ideas?
> 
> Recompile screen with the extra devices present - it uses some really
> interesting system to work out what devices to use, and it will limit
> you to ttyp*, and not tty{q,r,s,P,Q,R,S}*, if the latter aren't
> present.
> 
> Neil
> -- 
> Neil Blakey-Milner
> [EMAIL PROTECTED]
> 



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to