diff options
author | 2002-01-17 23:12:09 +0000 | |
---|---|---|
committer | 2002-01-17 23:12:09 +0000 | |
commit | e7407dcf1e42a03c3bb33b5b6db6c6a5590a3f09 (patch) | |
tree | 1e2c7664123cb8f82360f7b281770ed272d7b067 /lib/libpthread/uthread | |
parent | Support for sab serial ports has been added, list the entries. (diff) | |
download | wireguard-openbsd-e7407dcf1e42a03c3bb33b5b6db6c6a5590a3f09.tar.xz wireguard-openbsd-e7407dcf1e42a03c3bb33b5b6db6c6a5590a3f09.zip |
when alloc'ing the ready queue, make it big enough.
Diffstat (limited to 'lib/libpthread/uthread')
-rw-r--r-- | lib/libpthread/uthread/uthread_init.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libpthread/uthread/uthread_init.c b/lib/libpthread/uthread/uthread_init.c index a5a8e76cc8b..39242c8fd22 100644 --- a/lib/libpthread/uthread/uthread_init.c +++ b/lib/libpthread/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."); } |