[6825] in Athena Bugs
vax 7.2P: stty
daemon@ATHENA.MIT.EDU (daemon@ATHENA.MIT.EDU)
Tue Jan 8 09:19:21 1991
Date: Tue, 8 Jan 91 09:19:05 -0500
From: John T Kohl <jtkohl@MIT.EDU>
To: bugs@MIT.EDU
System name: lycus
Type and version: CVAXSTAR 7.2P
Display type: SM
What were you trying to do?
Change the window size with stty, and get csh to recognize it.
What's wrong:
when stty changes the tty sizes, it is the controlling process,
so the csh doesn't get the signal.
What should have happened:
stty should reflect the signal back to the parent:
*** /source/bsd-4.3/common/bin/stty/stty.c Mon Aug 10 15:35:43 1987
--- stty.c Tue Jan 8 09:01:17 1991
***************
*** 22,27 ****
--- 22,28 ----
#include <stdio.h>
#include <sys/ioctl.h>
+ #include <signal.h>
#define pcol(x,y) pcoln(x,y,7)
#define pco2(x,y) pcoln(x,y,6)
***************
*** 222,227 ****
--- 223,238 ----
};
char *arg;
+ #ifdef ultrix
+ void
+ #else
+ int
+ #endif
+ it_hits()
+ {
+ kill(getppid(), SIGWINCH);
+ }
+
int argc;
char **argv;
main(iargc, iargv)
***************
*** 231,236 ****
--- 242,248 ----
register struct special *sp;
char obuf[BUFSIZ];
+ signal(SIGWINCH, it_hits);
setbuf(stderr, obuf);
argc = iargc;
argv = iargv;
Please describe any relevant documentation references:
tty(4)