brian
07adfc3d98
Modify the code path of the ifdef NOTYET part of _kse_single_thread():
...
o Don't reinitialise the atfork() handler list in the child. We
are meant to call the child handler, and on subsequent fork()s
should call all three functions as normal.
o Don't reinitialise the thread specific keyed data in the
child after a fork. Applications may require this for context.
o Reinitialise curthread->tlflags after removing ourselves from
(and reinitialising) the various internal thread lists.
o Reinitialise __malloc_lock in the child after fork() (to balance
our explicitly taking the lock prior to the fork()).
With these changes, it is possible to enable the NOTYET code in
thr_kern.c to allow the use of non-async-safe functions after
fork()ing from a threaded program.
Reviewed by: Daniel Eischen <deischen@freebsd.org>
[_malloc_lock reinitialisation has since been moved to avoid polluting the
!NOTYET code]
2005-09-24 01:19:53 +00:00
..
2004-09-26 06:50:15 +00:00
2003-12-09 23:40:27 +00:00
2003-12-09 02:20:56 +00:00
2003-11-05 03:42:10 +00:00
2002-09-16 08:45:36 +00:00
2003-07-07 04:28:23 +00:00
2002-09-16 08:45:36 +00:00
2002-09-16 08:45:36 +00:00
2002-09-16 08:45:36 +00:00
2002-09-16 08:45:36 +00:00
2002-09-16 08:45:36 +00:00
2002-09-16 08:45:36 +00:00
2003-02-10 08:48:04 +00:00
2002-09-16 08:45:36 +00:00
2002-09-16 08:45:36 +00:00
2005-02-13 18:38:06 +00:00
2003-09-25 13:53:49 +00:00
2002-09-16 08:45:36 +00:00
2003-09-14 22:39:44 +00:00
2003-09-14 22:28:13 +00:00
2003-04-18 05:04:16 +00:00
2002-09-16 08:45:36 +00:00
2003-09-14 22:32:28 +00:00
2003-02-10 08:48:04 +00:00
2002-09-16 08:45:36 +00:00
2002-09-16 08:45:36 +00:00
2003-04-18 05:04:16 +00:00
2003-09-04 14:06:43 +00:00
2003-09-04 14:06:43 +00:00
2004-12-18 18:07:37 +00:00
2004-12-18 18:07:37 +00:00
2003-12-09 02:20:56 +00:00
2004-12-18 18:07:37 +00:00
2004-12-18 18:07:37 +00:00
2002-09-16 08:45:36 +00:00
2003-04-18 05:04:16 +00:00
2003-12-09 23:40:27 +00:00
2003-12-09 02:20:56 +00:00
2004-12-18 18:07:37 +00:00
2003-07-23 02:11:07 +00:00
2002-09-16 08:45:36 +00:00
2004-10-07 14:23:15 +00:00
2004-10-23 23:37:54 +00:00
2003-12-09 02:20:56 +00:00
2004-10-23 23:28:36 +00:00
2004-12-18 18:07:37 +00:00
2003-12-09 02:20:56 +00:00
2002-09-16 08:45:36 +00:00
2003-07-07 04:28:23 +00:00
2003-09-22 00:40:23 +00:00
2005-09-24 01:19:53 +00:00
2003-12-09 02:20:56 +00:00
2005-09-24 01:19:53 +00:00
2003-06-28 09:55:02 +00:00
2003-04-18 05:04:16 +00:00
2003-04-18 05:04:16 +00:00
2005-08-19 21:31:42 +00:00
2003-12-09 02:20:56 +00:00
2003-07-07 04:28:23 +00:00
2003-04-18 05:04:16 +00:00
2005-08-19 21:31:42 +00:00
2002-09-16 08:45:36 +00:00
2003-12-09 02:20:56 +00:00
2004-12-18 18:07:37 +00:00
2003-12-09 02:20:56 +00:00
2003-12-09 02:20:56 +00:00
2003-12-09 02:20:56 +00:00
2004-02-10 20:42:33 +00:00
2004-08-03 02:23:06 +00:00
2005-06-22 22:35:49 +00:00
2003-12-09 02:20:56 +00:00
2005-09-01 15:21:23 +00:00
2003-07-19 05:25:49 +00:00
2003-12-09 02:20:56 +00:00
2003-12-09 02:20:56 +00:00
2003-07-23 02:11:07 +00:00
2005-08-29 13:47:42 +00:00
2004-01-08 15:37:09 +00:00
2002-09-16 08:45:36 +00:00
2003-12-09 02:20:56 +00:00
2003-04-18 05:04:16 +00:00
2005-09-01 15:21:23 +00:00
2003-04-18 05:04:16 +00:00
2002-09-16 08:45:36 +00:00
2003-04-21 04:02:56 +00:00
2004-12-18 18:07:37 +00:00
2003-09-25 06:23:40 +00:00
2004-01-02 00:38:42 +00:00
2003-09-18 12:19:28 +00:00
2003-08-18 03:58:29 +00:00
2003-08-18 03:58:29 +00:00
2005-09-01 15:21:23 +00:00
2004-03-17 02:12:19 +00:00
2005-08-03 00:48:13 +00:00
2004-07-13 22:49:58 +00:00
2004-12-18 18:07:37 +00:00
2005-02-13 18:38:06 +00:00
2003-05-04 16:17:01 +00:00
2003-04-18 05:04:16 +00:00
2005-09-01 15:21:23 +00:00
2003-12-09 02:20:56 +00:00
2003-12-09 02:20:56 +00:00
2003-12-09 02:20:56 +00:00
2003-12-09 02:20:56 +00:00
2003-12-09 02:20:56 +00:00
2003-12-09 02:20:56 +00:00
2003-12-09 02:20:56 +00:00
2003-08-18 03:58:29 +00:00