🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.bugs.4bsd
Article #147

rlogin windowsize change in more/BSD 4.3

#147
From: Jyrki Kuoppala
Date: Mon, 11 Dec 1989 17:43
42 lines
1742 bytes
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!
Technical Details
Message-ID: <1989Dec11.174344.16380@santra.uucp>
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!uunet!mcsun!sunic!tut!santra!news

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!uunet!mcsun!sunic!tut!santra!news
From: jkp@cs.HUT.FI (Jyrki Kuoppala)
Newsgroups: comp.bugs.4bsd
Subject: rlogin windowsize change in more/BSD 4.3
Message-ID: <1989Dec11.174344.16380@santra.uucp>
Date: 11 Dec 89 17:43:44 GMT
Sender: news@santra.uucp (Cnews - USENET news system)
Reply-To: jkp@cs.HUT.FI (Jyrki Kuoppala)
Organization: Helsinki University of Technology, Finland
Lines: 42