diff options
author | rsc <devnull@localhost> | 2006-06-28 17:39:52 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2006-06-28 17:39:52 +0000 |
commit | 93921c4817e778d7e8b157302cf5793843780a5e (patch) | |
tree | b73feecc7d0e215848ba5f9fe0b49db4b25993a2 | |
parent | aec641d24c0e41671097563d938a9ed21999c0ab (diff) | |
download | plan9port-93921c4817e778d7e8b157302cf5793843780a5e.tar.gz plan9port-93921c4817e778d7e8b157302cf5793843780a5e.tar.bz2 plan9port-93921c4817e778d7e8b157302cf5793843780a5e.zip |
better cleanup
-rw-r--r-- | src/cmd/9term/9term.c | 7 |
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; |