[2338] in SIPB bug reports
RISC/6000 tcsh-6.00: tty modes
daemon@ATHENA.MIT.EDU (Richard Basch)
Sat Dec 14 19:17:31 1991
Date: Sat, 14 Dec 91 19:16:47 -0500
To: bug-sipb@MIT.EDU
Cc: basch@MIT.EDU
From: "Richard Basch" <basch@MIT.EDU>
Backgrounded jobs seem to have incorrect tty attributes set.
A simple way to demonstrate the bug is:
stty -a &
534% stty -a
speed 9600 baud; ; 34 rows; 80 columns
intr = ^C; quit = ^\; erase = ^H; kill = ^U; eof = ^D; eol = ^@
eol2 <undef>; start = ^Q; stop = ^S; susp = ^Z; dsusp = ^Y; reprint = ^R
discard = ^O; werase = ^W; lnext = ^V
parenb parodd cs7 -cstopb hupcl cread -clocal -parext
-ignbrk brkint -ignpar -parmrk -inpck istrip -inlcr -igncr icrnl -iuclc
ixon ixany -ixoff imaxbel
isig icanon -xcase echo echoe echok -echonl -noflsh
-tostop echoctl -echoprt -echoke -flusho pending iexten
opost -olcuc onlcr -ocrnl -onocr -onlret -ofill -ofdel
535% stty -a &
[1] 18917
speed 9600 baud; ; 34 rows; 80 columns
intr = ^C; quit = ^\; erase = ^H; kill = ^U; eof = ^A; eol = ^@
eol2 <undef>; start = ^Q; stop = ^S; susp <undef>; dsusp <undef>
reprint <undef>; discard = ^O; werase <undef>; lnext <undef>
parenb parodd cs7 -cstopb hupcl cread -clocal -parext
-ignbrk brkint -ignpar -parmrk -inpck istrip inlcr -igncr icrnl -iuclc
ixon ixany -ixoff imaxbel
isig -icanon -xcase -echo echoe -echok -echonl -noflsh
-tostop echoctl -echoprt -echoke -flusho -pending -iexten
Notice that susp, dsusp, eof, reprint, werase, lnext are all munged.
This bug can cause lots of problems:
o xterm &: the new window will have everything set to ^C because they
were undefined, and then you will not be able to start any jobs and
have a way to control the jobs properly.
o rlogin <host> &: Though this is incorrect and will stop with SIGTTIN,
you cannot simply "fg" the process to resume and still be able to
suspend the rlogin session.
The list goes on and on... have fun...
-Richard