From 104a69df318cc085bb712912a5ca8a45e2e030e2 Mon Sep 17 00:00:00 2001 From: "Federico G. Schwindt" Date: Thu, 17 Jan 2002 23:12:10 +0000 Subject: when alloc'ing the ready queue, make it big enough. --- lib/libc_r/uthread/uthread_init.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/libc_r') 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 * 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."); } -- cgit v1.2.3