From c7148de1a6542ffda8d939d24cd03281af4e5262 Mon Sep 17 00:00:00 2001 From: David Xu Date: Fri, 19 Dec 2003 13:24:54 +0000 Subject: [PATCH] Replace a comment with more accurated one, memory heap is now protected by new fork() wrapper. --- lib/libkse/thread/thr_kern.c | 5 ++--- lib/libpthread/thread/thr_kern.c | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/lib/libkse/thread/thr_kern.c b/lib/libkse/thread/thr_kern.c index a5d068bf3c6..c72e915d1b6 100644 --- a/lib/libkse/thread/thr_kern.c +++ b/lib/libkse/thread/thr_kern.c @@ -199,9 +199,8 @@ thr_accounting(struct pthread *thread) * that require certain resources between the call to fork() and * the call to an exec function are undefined. * - * Here it is not safe to reinitialize the library after fork(). - * Because memory management may be corrupted, further calling - * malloc()/free() may cause undefined behavior. + * It is not safe to free memory after fork(), because these data + * structures may be in inconsistent state. */ void _kse_single_thread(struct pthread *curthread) diff --git a/lib/libpthread/thread/thr_kern.c b/lib/libpthread/thread/thr_kern.c index a5d068bf3c6..c72e915d1b6 100644 --- a/lib/libpthread/thread/thr_kern.c +++ b/lib/libpthread/thread/thr_kern.c @@ -199,9 +199,8 @@ thr_accounting(struct pthread *thread) * that require certain resources between the call to fork() and * the call to an exec function are undefined. * - * Here it is not safe to reinitialize the library after fork(). - * Because memory management may be corrupted, further calling - * malloc()/free() may cause undefined behavior. + * It is not safe to free memory after fork(), because these data + * structures may be in inconsistent state. */ void _kse_single_thread(struct pthread *curthread)