aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;