summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Brinkmann <marcus@gnu.org>2002-07-31 02:20:44 +0000
committerMarcus Brinkmann <marcus@gnu.org>2002-07-31 02:20:44 +0000
commitc612109d24d1f503ca37b77300820184aef775ca (patch)
tree8ae629ce5dca500b552c2a89a57da65ce0677229
parent6813e3494f4a48950ccc637ff4ff758aaf7d5ad8 (diff)
2002-07-29 Marcus Brinkmann <marcus@gnu.org>
* cthreads.c (cthread_init): Move cthread_alloc call before cproc_init call (lost in merge).
-rw-r--r--libthreads/ChangeLog3
-rw-r--r--libthreads/cthreads.c8
2 files changed, 10 insertions, 1 deletions
diff --git a/libthreads/ChangeLog b/libthreads/ChangeLog
index 47274794..8e8e2ddd 100644
--- a/libthreads/ChangeLog
+++ b/libthreads/ChangeLog
@@ -4,6 +4,9 @@
__hurd_threadvar_stack_mask and __hurd_threadvar_stack_offset
variables (which got lost in the merge).
+ * cthreads.c (cthread_init): Move cthread_alloc call before
+ cproc_init call (lost in merge).
+
2002-05-28 Roland McGrath <roland@frob.com>
* cthreads.h: Do not define WAIT_DEBUG to affect inlines.
diff --git a/libthreads/cthreads.c b/libthreads/cthreads.c
index fce1b593..a68b7ee6 100644
--- a/libthreads/cthreads.c
+++ b/libthreads/cthreads.c
@@ -30,6 +30,12 @@
* catch is reserved word in c++.
*
* $Log: cthreads.c,v $
+ * Revision 1.13 2002/05/28 23:55:55 roland
+ * 2002-05-28 Roland McGrath <roland@frob.com>
+ *
+ * * cthreads.c (cthread_fork_prepare, cthread_fork_parent,
+ * cthread_fork_child): Don't call malloc_fork_* (lost in merge).
+ *
* Revision 1.12 2002/05/27 02:50:10 roland
* 2002-05-26 Roland McGrath <roland@frob.com>
*
@@ -211,9 +217,9 @@ cthread_init(void)
if (cthreads_started)
return 0;
+ t = cthread_alloc((cthread_fn_t) 0, (any_t) 0);
stack = cproc_init();
cthread_cprocs = 1;
- t = cthread_alloc((cthread_fn_t) 0, (void *) 0);
#ifdef cthread_md_init
cthread_md_init();