changelog shortlog tags branches files raw gz bz2 help

Mercurial > hg > plan9front / changeset: vt: dont make fs procs hang arround when closing rio window

changeset 7126: 9b9537ba3d35
parent 7125: b2188aa5a2af
child 7127: 2a70b2df336c
author: cinap_lenrek@felloff.net
date: Tue, 02 Apr 2019 20:44:35 +0200
files: sys/src/cmd/vt/main.c
description: vt: dont make fs procs hang arround when closing rio window
     1.1--- a/sys/src/cmd/vt/main.c
     1.2+++ b/sys/src/cmd/vt/main.c
     1.3@@ -235,6 +235,12 @@ shutdown(void)
     1.4 	threadexitsall(nil);
     1.5 }
     1.6 
     1.7+static void
     1.8+catch(void*, char*)
     1.9+{
    1.10+	shutdown();
    1.11+}
    1.12+
    1.13 void
    1.14 usage(void)
    1.15 {
    1.16@@ -291,6 +297,7 @@ threadmain(int argc, char **argv)
    1.17 	}ARGEND;
    1.18 
    1.19 	quotefmtinstall();
    1.20+	notify(catch);
    1.21 	atexit(shutdown);
    1.22 
    1.23 	if(initdraw(0, fontname, term) < 0)