summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/thread/thr_fork.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libpthread/thread/thr_fork.c')
-rw-r--r--lib/libpthread/thread/thr_fork.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libpthread/thread/thr_fork.c b/lib/libpthread/thread/thr_fork.c
index 155416e..b8d72dc 100644
--- a/lib/libpthread/thread/thr_fork.c
+++ b/lib/libpthread/thread/thr_fork.c
@@ -164,6 +164,9 @@ fork(void)
}
}
+ /* Treat the current thread as the initial thread: */
+ _thread_initial = _thread_run;
+
/* Re-init the dead thread list: */
TAILQ_INIT(&_dead_list);
OpenPOWER on IntegriCloud