diff options
| author | Dmitrij Tejblum <dt@FreeBSD.org> | 1998-10-09 19:01:30 +0000 |
|---|---|---|
| committer | Dmitrij Tejblum <dt@FreeBSD.org> | 1998-10-09 19:01:30 +0000 |
| commit | 4b12016bab74b93e6e7dd3905029f01b5a02fb80 (patch) | |
| tree | cbf2790ce98d3ea1708a646ed1dcc4a498f02f63 /lib/libpthread/thread/thr_create.c | |
| parent | e95de2a60263532878cdbcd453d7afbed4c665b3 (diff) | |
Notes
Diffstat (limited to 'lib/libpthread/thread/thr_create.c')
| -rw-r--r-- | lib/libpthread/thread/thr_create.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libpthread/thread/thr_create.c b/lib/libpthread/thread/thr_create.c index c7ddeb2a59c0..416946131add 100644 --- a/lib/libpthread/thread/thr_create.c +++ b/lib/libpthread/thread/thr_create.c @@ -223,6 +223,9 @@ pthread_create(pthread_t * thread, const pthread_attr_t * attr, void _thread_start(void) { + /* We just left the scheduler via longjmp: */ + _thread_kern_in_sched = 0; + /* Run the current thread's start routine with argument: */ pthread_exit(_thread_run->start_routine(_thread_run->arg)); |
