From 481b596d9389076d686832e0a3c26fc7b550c532 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Mon, 13 Jan 2020 23:26:26 -0500 Subject: libthread: fix fault in teardown of proc Fixes #332. --- src/libthread/thread.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/libthread/thread.c') diff --git a/src/libthread/thread.c b/src/libthread/thread.c index c84af855..d041efcc 100644 --- a/src/libthread/thread.c +++ b/src/libthread/thread.c @@ -429,6 +429,7 @@ Out: unlock(&p->lock); _threadsetproc(nil); free(p); + _threadpexit(); } void -- cgit v1.2.3