ref: 3bb180463108545274592b53940274c52b1d9186
parent: 89a83271f43c98cc58b1ea7493e6a66cd16abf36
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)