From 6478b523aaf6e892cb354ddd3b74136f4f24f8ec Mon Sep 17 00:00:00 2001 From: jb Date: Wed, 30 Sep 1998 06:41:16 +0000 Subject: Cosmetic cleansing. This code requires extra work to keep the garbage collector thread running after a fork. --- lib/libkse/thread/thr_fork.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/libkse') diff --git a/lib/libkse/thread/thr_fork.c b/lib/libkse/thread/thr_fork.c index d56f98d..960c1de 100644 --- a/lib/libkse/thread/thr_fork.c +++ b/lib/libkse/thread/thr_fork.c @@ -103,15 +103,16 @@ fork(void) pthread->nxt = NULL; } else { if (pthread->attr.stackaddr_attr == - NULL && pthread->stack != NULL) { + NULL && pthread->stack != NULL) /* * Free the stack of the * dead thread: */ free(pthread->stack); - } + if (pthread->specific_data != NULL) free(pthread->specific_data); + free(pthread); } -- cgit v1.1