ref: f7d63218ddef9e2b38aaa7a23b0653498cd662b4
parent: 10bd9627a5dae058982c4e321ede8830e36ca1f6
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Tue Apr 2 16:44:35 EDT 2019
vt: dont make fs procs hang arround when closing rio window
--- a/sys/src/cmd/vt/main.c
+++ b/sys/src/cmd/vt/main.c
@@ -235,6 +235,12 @@
threadexitsall(nil);
}
+static void
+catch(void*, char*)
+{+ shutdown();
+}
+
void
usage(void)
{@@ -291,6 +297,7 @@
}ARGEND;
quotefmtinstall();
+ notify(catch);
atexit(shutdown);
if(initdraw(0, fontname, term) < 0)
--
⑨