rlogin windowsize change in more/BSD 4.3
Jyrki Kuoppala
jkp at cs.HUT.FI
Tue Dec 12 04:43:44 AEST 1989
When we updated to more/BSD 4.3, we noticed that neither window size
change nor the original window size were transferred on the rlogin
connection. Of course you can use the free one from the Berkeley
networking release (which is newer anyway) but here's the fix for the
bug:
*** /u8/src/ucb/rlogin.c Tue Aug 8 15:44:09 1989
--- rlogin.c Mon Dec 11 19:22:39 1989
***************
*** 483,489 ****
/*
* Let server know about window size changes
*/
! kill(ppid, SIGURG);
}
if (!eight && (mark & TIOCPKT_NOSTOP)) {
ioctl(0, TIOCGETP, (char *)&sb);
--- 483,489 ----
/*
* Let server know about window size changes
*/
! kill(ppid, SIGUSR1);
}
if (!eight && (mark & TIOCPKT_NOSTOP)) {
ioctl(0, TIOCGETP, (char *)&sb);
***************
*** 553,558 ****
--- 553,559 ----
char *bufp = rcvbuf;
signal(SIGTTOU, SIG_IGN);
+ signal(SIGURG, oob);
fcntl(rem, F_SETOWN, pid);
ppid = getppid();
(void) setjmp(rcvtop);
//Jyrki
Jyrki Kuoppala Helsinki University of Technology, Finland.
Room U249, Otakaari 1, 02150 Espoo, Finland, tel. + 358 0 451 4316
Internet : jkp at cs.hut.fi [128.214.3.119]
BITNET : jkp at fingate.bitnet Gravity is a myth, the Earth sucks!
More information about the Comp.bugs.4bsd.ucb-fixes
mailing list