diff options
author | jb <jb@FreeBSD.org> | 1998-09-30 06:41:16 +0000 |
---|---|---|
committer | jb <jb@FreeBSD.org> | 1998-09-30 06:41:16 +0000 |
commit | 6478b523aaf6e892cb354ddd3b74136f4f24f8ec (patch) | |
tree | 832c3deb25ef37d9992f3cada84f38ac36b91fdf /lib/libc_r | |
parent | df42f1ac5f49d30528909286a925e0d7492bc337 (diff) | |
download | FreeBSD-src-6478b523aaf6e892cb354ddd3b74136f4f24f8ec.zip FreeBSD-src-6478b523aaf6e892cb354ddd3b74136f4f24f8ec.tar.gz |
Cosmetic cleansing. This code requires extra work to keep the garbage
collector thread running after a fork.
Diffstat (limited to 'lib/libc_r')
-rw-r--r-- | lib/libc_r/uthread/uthread_fork.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libc_r/uthread/uthread_fork.c b/lib/libc_r/uthread/uthread_fork.c index d56f98d..960c1de 100644 --- a/lib/libc_r/uthread/uthread_fork.c +++ b/lib/libc_r/uthread/uthread_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); } |