aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-07-21 15:43:51 +0000
committerrsc <devnull@localhost>2005-07-21 15:43:51 +0000
commit1a24aaca91aab030acd287a53a16649551d90b3e (patch)
treefd83f0d6c3e54a6f2453d4f92e7dd3a0cdd2d575 /src
parentf52e90ebe86957fcc596b7e7818084aed02213f5 (diff)
downloadplan9port-1a24aaca91aab030acd287a53a16649551d90b3e.tar.gz
plan9port-1a24aaca91aab030acd287a53a16649551d90b3e.tar.bz2
plan9port-1a24aaca91aab030acd287a53a16649551d90b3e.zip
stupid signal fix
Diffstat (limited to 'src')
-rw-r--r--src/cmd/9term/rcstart.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/cmd/9term/rcstart.c b/src/cmd/9term/rcstart.c
index a598f420..5b4f48c0 100644
--- a/src/cmd/9term/rcstart.c
+++ b/src/cmd/9term/rcstart.c
@@ -57,8 +57,17 @@ rcstart(int argc, char **argv, int *pfd, int *tfd)
*
* Can't disable because will be inherited by other programs
* like if you run an xterm from the prompt, and then xterm's
- * resizes won't get handled right. Sigh.
+ * resizes won't get handled right. Sigh.
+ *
+ * Can't not disable because when we stty below we'll get a
+ * signal, which will drop us into the thread library note handler,
+ * which will get all confused because we just forked and thus
+ * have an unknown pid.
+ *
+ * So disable it internally. ARGH!
*/
+ notifyoff("sys: window size change");
+
pid = fork();
switch(pid){
case 0: