Subject: xterm & TIOCGPGRP
To: None <port-sparc@sun-lamp.cs.berkeley.edu>
From: peter <Peter.Galbavy@micromuse.co.uk>
List: port-sparc
Date: 03/03/1994 12:02:21
The first post failed - so again:
Hi all,
Just trying to run xterm and I get a "xterm: no available ptys" message.
Usgin ktrace and looking at the xterm source, there "seems" to be a
difference in TIOCGPGRP handling...
in xterm/main.c:
#ifdef sun
int dummy;
ptydev[5] = 't';
chown(ptydev, 0, 0);
chmod(ptydev, 0600);
ptydev[5] = 'p';
if (ioctl(*pty,TIOCGPGRP, &dummy) == -1
&& errno == EIO) {
(void) devindex++;
return 0;
}
close(*pty);
#else
and ktrace says:
90 xterm CALL chown(0x2d2a0,0,0)
90 xterm NAMI "/dev/ttyp1"
90 xterm RET chown 0
90 xterm CALL chmod(0x2d2a0,0x180)
90 xterm NAMI "/dev/ttyp1"
90 xterm RET chmod 0
90 xterm CALL ioctl(0x4,TIOCGPGRP,0xf7ffeb14)
90 xterm RET ioctl 0
90 xterm CALL close(0x4)
for that bit of code. Should it be returning -1 here ? Or is xterm
broken ?
BTW my cgsix0 is seen and configured - I am short or screen cables at
the moment so I can't try the x server yet.
Have fun now,
--
Peter Galbavy work: peter@micromuse.co.uk
+44 81 875 9500 home: peter@wonderland.org
------------------------------------------------------------------------------