plan9port

fork of plan9port with libvec, libstr and libsdb
Log | Files | Refs | README | LICENSE

commit 93921c4817e778d7e8b157302cf5793843780a5e
parent aec641d24c0e41671097563d938a9ed21999c0ab
Author: rsc <devnull@localhost>
Date:   Wed, 28 Jun 2006 17:39:52 +0000

better cleanup

Diffstat:
Msrc/cmd/9term/9term.c | 7+++++--
1 file changed, 5 insertions(+), 2 deletions(-)

diff --git 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;