tbetter cleanup - plan9port - [fork] Plan 9 from user space
(HTM) git clone git://src.adamsgaard.dk/plan9port
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 93921c4817e778d7e8b157302cf5793843780a5e
(DIR) parent aec641d24c0e41671097563d938a9ed21999c0ab
(HTM) Author: rsc <devnull@localhost>
Date: Wed, 28 Jun 2006 17:39:52 +0000
better cleanup
Diffstat:
M src/cmd/9term/9term.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
---
(DIR) diff --git a/src/cmd/9term/9term.c b/src/cmd/9term/9term.c
t@@ -17,6 +17,7 @@
int use9wm;
int mainpid;
+int mousepid;
int plumbfd;
int rcpid;
int rcfd;
t@@ -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;