aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/9term
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2006-06-28 17:39:52 +0000
committerrsc <devnull@localhost>2006-06-28 17:39:52 +0000
commit93921c4817e778d7e8b157302cf5793843780a5e (patch)
treeb73feecc7d0e215848ba5f9fe0b49db4b25993a2 /src/cmd/9term
parentaec641d24c0e41671097563d938a9ed21999c0ab (diff)
downloadplan9port-93921c4817e778d7e8b157302cf5793843780a5e.tar.gz
plan9port-93921c4817e778d7e8b157302cf5793843780a5e.tar.bz2
plan9port-93921c4817e778d7e8b157302cf5793843780a5e.zip
better cleanup
Diffstat (limited to 'src/cmd/9term')
-rw-r--r--src/cmd/9term/9term.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/cmd/9term/9term.c b/src/cmd/9term/9term.c
index 1610d0d4..7430c49c 100644
--- a/src/cmd/9term/9term.c
+++ b/src/cmd/9term/9term.c
@@ -17,6 +17,7 @@
int use9wm;
int mainpid;
+int mousepid;
int plumbfd;
int rcpid;
int rcfd;
@@ -132,8 +133,10 @@ hangupnote(void *a, char *msg)
{
if(getpid() != mainpid)
noted(NDFLT);
- if(strcmp(msg, "hangup") == 0)
- noted(NCONT);
+ if(strcmp(msg, "hangup") == 0){
+ postnote(PNPROC, rcpid, "hangup");
+ noted(NDFLT);
+ }
if(strstr(msg, "child")){
char buf[128];
int n;