vt: dont make fs procs hang arround when closing rio window

This commit is contained in:
cinap_lenrek 2019-04-02 20:44:35 +02:00
parent 89a83271f4
commit 3bb1804631

View file

@ -235,6 +235,12 @@ shutdown(void)
threadexitsall(nil);
}
static void
catch(void*, char*)
{
shutdown();
}
void
usage(void)
{
@ -291,6 +297,7 @@ threadmain(int argc, char **argv)
}ARGEND;
quotefmtinstall();
notify(catch);
atexit(shutdown);
if(initdraw(0, fontname, term) < 0)