From: bsa@kf8nh.wariat.org Subject: Tricks and traps with ptys? Date: Sun, 28 Feb 1993 21:51:49 GMT
I've been hacking on the xterm sources off the Dec. 92 GNU/X11R5 CD-ROM. I've
applied the color patches, I'm looking for an IBMPC character set font, and
I'm trying to add a keyboard buffer mode, all for the sake of Seyon. :-)
Anyway, I'm stopped: xterm starts up the first time and works fine. The next
time I start it it hangs. It doesn't seem to be permissions, since the xterm
that came with SLS works fine. It doesn't look like job control because the
pgrp/sid/etc. values shown by "ps j" look similar to those shown for a stock
xterm running bash... but the bash started by the new xterm has status "T",
which *does* look like a job control problem. And it has no controlling tty.
(How can it end up stopped on job control with no controlling tty?) I looked
over the pty opening code (and did some experiments) with no results; I can't
see why it wouldn't work.
Would someone who knows what had to be done to xterm to make it work under
Linux (or has a suspicion of what bone-headed thing I did to not make it work
:-) please mail me an explanatioon of what I need to do to fix it? I'm kind
of sick of rebooting under DOS to do online conferences.... :-)
Thanks in advance,
++Brandon
(P.S. Defines I inserted to make it compile:
#ifdef linux
#define USE_SYSV_UTMP
#define USE_TERMIOS
#define USE_HANDSHAKE
#define HAS_UTMP_UT_HOST
#define HAS_BSD_GROUPS
#undef TIOCCONS
#define CONSLOG "/proc/kmsg"
#endif
where the CONSLOG stuff is a hacked version of the posted diffs to do console
output redirection using /proc.)