diff options
author | cinap_lenrek <cinap_lenrek@gmx.de> | 2013-09-11 21:23:45 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@gmx.de> | 2013-09-11 21:23:45 +0200 |
commit | be5992955d4e417ca625b07af93a800464d4c11f (patch) | |
tree | 605aaea0f15646792facdd915f5c41c7555c54cf /sys/src/cmd/acme | |
parent | 6c5deb9b50cc57bbc3874b9eb2da53c89c015273 (diff) |
acme: use threadexitsall() to tear down mouse and keyboard procs on error
Diffstat (limited to 'sys/src/cmd/acme')
-rw-r--r-- | sys/src/cmd/acme/acme.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/src/cmd/acme/acme.c b/sys/src/cmd/acme/acme.c index 15fe5a3b7..27239c4d5 100644 --- a/sys/src/cmd/acme/acme.c +++ b/sys/src/cmd/acme/acme.c @@ -167,19 +167,19 @@ threadmain(int argc, char *argv[]) cwarn = chancreate(sizeof(void*), 1); if(cwait==nil || ccommand==nil || ckill==nil || cxfidalloc==nil || cxfidfree==nil || cerr==nil || cexit==nil || cwarn==nil){ fprint(2, "acme: can't create initial channels: %r\n"); - exits("channels"); + threadexitsall("channels"); } mousectl = initmouse(nil, screen); if(mousectl == nil){ fprint(2, "acme: can't initialize mouse: %r\n"); - exits("mouse"); + threadexitsall("mouse"); } mouse = mousectl; keyboardctl = initkeyboard(nil); if(keyboardctl == nil){ fprint(2, "acme: can't initialize keyboard: %r\n"); - exits("keyboard"); + threadexitsall("keyboard"); } mainpid = getpid(); plumbeditfd = plumbopen("edit", OREAD|OCEXEC); |