diff options
author | Federico G. Schwindt <fgsch@cvs.openbsd.org> | 2002-01-17 23:12:10 +0000 |
---|---|---|
committer | Federico G. Schwindt <fgsch@cvs.openbsd.org> | 2002-01-17 23:12:10 +0000 |
commit | 104a69df318cc085bb712912a5ca8a45e2e030e2 (patch) | |
tree | 024cfc36875acb412d57a4ec28430b47dd09ab30 /lib/libc_r | |
parent | ca1db71e0363b4c04c7d140c995bb35f4a78f266 (diff) |
when alloc'ing the ready queue, make it big enough.
Diffstat (limited to 'lib/libc_r')
-rw-r--r-- | lib/libc_r/uthread/uthread_init.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc_r/uthread/uthread_init.c b/lib/libc_r/uthread/uthread_init.c index a5a8e76cc8b..39242c8fd22 100644 --- a/lib/libc_r/uthread/uthread_init.c +++ b/lib/libc_r/uthread/uthread_init.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uthread_init.c,v 1.19 2001/12/31 18:23:15 fgsch Exp $ */ +/* $OpenBSD: uthread_init.c,v 1.20 2002/01/17 23:12:09 fgsch Exp $ */ /* * Copyright (c) 1995-1998 John Birrell <jb@cimlogic.com.au> * All rights reserved. @@ -141,7 +141,7 @@ _thread_init(void) PANIC("Cannot get kernel write pipe flags"); } /* Allocate and initialize the ready queue: */ - else if (_pq_alloc(&_readyq, PTHREAD_MIN_PRIORITY, PTHREAD_MAX_PRIORITY) != 0) { + else if (_pq_alloc(&_readyq, PTHREAD_MIN_PRIORITY, PTHREAD_LAST_PRIORITY) != 0) { /* Abort this application: */ PANIC("Cannot allocate priority ready queue."); } |