diff options
| author | cinap_lenrek <cinap_lenrek@felloff.net> | 2019-04-02 20:44:35 +0200 |
|---|---|---|
| committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2019-04-02 20:44:35 +0200 |
| commit | 3bb180463108545274592b53940274c52b1d9186 (patch) | |
| tree | b5a38540f1251fca74b7fdab85bc5e27a9a33769 | |
| parent | 89a83271f43c98cc58b1ea7493e6a66cd16abf36 (diff) | |
| download | plan9front-3bb180463108545274592b53940274c52b1d9186.tar.xz | |
vt: dont make fs procs hang arround when closing rio window
| -rw-r--r-- | sys/src/cmd/vt/main.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/src/cmd/vt/main.c b/sys/src/cmd/vt/main.c index de3d2393b..aa074d6db 100644 --- a/sys/src/cmd/vt/main.c +++ b/sys/src/cmd/vt/main.c @@ -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) |
