[comp.bugs.4bsd] rlogin windowsize change in more/BSD 4.3

jkp@cs.HUT.FI (Jyrki Kuoppala) (12/12/89)

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@cs.hut.fi           [128.214.3.119]
BITNET :        jkp@fingate.bitnet      Gravity is a myth, the Earth sucks!