diff options
author | davidxu <davidxu@FreeBSD.org> | 2003-12-19 13:24:54 +0000 |
---|---|---|
committer | davidxu <davidxu@FreeBSD.org> | 2003-12-19 13:24:54 +0000 |
commit | 7b3cca8521f8011e53960ec7537f0267841caa9e (patch) | |
tree | b85d02b87730fee6e408ede12d4832fa81c1dc9f /lib/libpthread | |
parent | 50207b49b7023e9dddefa0910c7bb006aa4ddaaf (diff) | |
download | FreeBSD-src-7b3cca8521f8011e53960ec7537f0267841caa9e.zip FreeBSD-src-7b3cca8521f8011e53960ec7537f0267841caa9e.tar.gz |
Replace a comment with more accurated one, memory heap is now protected by
new fork() wrapper.
Diffstat (limited to 'lib/libpthread')
-rw-r--r-- | lib/libpthread/thread/thr_kern.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/libpthread/thread/thr_kern.c b/lib/libpthread/thread/thr_kern.c index a5d068b..c72e915 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) |