1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-16 10:20:30 +00:00

Cosmetic cleansing. This code requires extra work to keep the garbage

collector thread running after a fork.
This commit is contained in:
John Birrell 1998-09-30 06:41:16 +00:00
parent dc3a8b52c0
commit d3bb66886d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=39808
3 changed files with 9 additions and 6 deletions

View File

@ -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);
}

View File

@ -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);
}

View File

@ -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);
}