| Date: Mon, 13 Jan 2020 23:26:26 -0500
libthread: fix fault in teardown of proc
Fixes #332.
Diffstat:
M src/libthread/thread.c | 1 +
M src/libthread/threadimpl.h | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
--- |
| t@@ -197,7 +197,7 @@ extern Channel *_dowaitchan;
extern void _procstart(Proc*, void (*fn)(Proc*));
extern _Thread *_threadcreate(Proc*, void(*fn)(void*), void*, uint);
-extern void _threadexit(void);
+extern void _procexit(void);
extern Proc *_threadproc(void);
extern void _threadsetproc(Proc*);
extern int _threadlock(Lock*, int, ulong); |