Skip to content

Commit

Permalink
* malloc/arena.c (ptmalloc_unlock_all2): Reset atfork_arena_ptr.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulrich Drepper committed Oct 10, 2005
1 parent 508aa29 commit e851dca
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2005-10-10 Ulrich Drepper <drepper@redhat.com>

* malloc/arena.c (ptmalloc_unlock_all2): Reset atfork_arena_ptr.

2005-10-08 Jakub Jelinek <jakub@redhat.com>

* nss/getent.c (hosts_keys): Pass INADDRSZ as size rather
Expand Down
3 changes: 2 additions & 1 deletion malloc/arena.c
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ ptmalloc_unlock_all (void)

#ifdef __linux__

/* In LinuxThreads, unlocking a mutex in the child process after a
/* In NPTL, unlocking a mutex in the child process after a
fork() is currently unsafe, whereas re-initializing it is safe and
does not leak resources. Therefore, a special atfork handler is
installed for the child. */
Expand All @@ -300,6 +300,7 @@ ptmalloc_unlock_all2 (void)
if(ar_ptr == &main_arena) break;
}
mutex_init(&list_lock);
atfork_recursive_cntr = 0;
}

#else
Expand Down

0 comments on commit e851dca

Please sign in to comment.