summaryrefslogtreecommitdiff
path: root/lib/libthr/thread/thr_init.c
diff options
context:
space:
mode:
authorMike Makonnen <mtm@FreeBSD.org>2003-05-25 22:40:57 +0000
committerMike Makonnen <mtm@FreeBSD.org>2003-05-25 22:40:57 +0000
commit12c407a42419514164b8f82ef202d73f6f7c9a09 (patch)
tree8bc5a970789c8f2762484249a02b9ccd0ccb6ef6 /lib/libthr/thread/thr_init.c
parenta9a0bbad19f73db3d2cb9b10ba5fce3bb3fbcdec (diff)
Notes
Diffstat (limited to 'lib/libthr/thread/thr_init.c')
-rw-r--r--lib/libthr/thread/thr_init.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libthr/thread/thr_init.c b/lib/libthr/thread/thr_init.c
index 98b0eef7221b..9c334daf0d29 100644
--- a/lib/libthr/thread/thr_init.c
+++ b/lib/libthr/thread/thr_init.c
@@ -162,6 +162,7 @@ _thread_init(void)
size_t len;
int mib[2];
sigset_t set;
+ int error;
struct clockinfo clockinfo;
struct sigaction act;
@@ -221,7 +222,7 @@ _thread_init(void)
memset(pthread, 0, sizeof(struct pthread));
_thread_initial = pthread;
- pthread->arch_id = _set_curthread(NULL, pthread);
+ pthread->arch_id = _set_curthread(NULL, pthread, &error);
/* Get our thread id. */
thr_self(&pthread->thr_id);