From owner-p4-projects@FreeBSD.ORG Mon Feb 21 09:03:22 2005 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 0FACD16A4D0; Mon, 21 Feb 2005 09:03:22 +0000 (GMT) Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DA29A16A4CE for ; Mon, 21 Feb 2005 09:03:21 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id B018143D55 for ; Mon, 21 Feb 2005 09:03:21 +0000 (GMT) (envelope-from davidxu@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j1L93L8Z012611 for ; Mon, 21 Feb 2005 09:03:21 GMT (envelope-from davidxu@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j1L93LQn012608 for perforce@freebsd.org; Mon, 21 Feb 2005 09:03:21 GMT (envelope-from davidxu@freebsd.org) Date: Mon, 21 Feb 2005 09:03:21 GMT Message-Id: <200502210903.j1L93LQn012608@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to davidxu@freebsd.org using -f From: David Xu To: Perforce Change Reviews Subject: PERFORCE change 71449 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Feb 2005 09:03:22 -0000 http://perforce.freebsd.org/chv.cgi?CH=71449 Change 71449 by davidxu@davidxu_celeron on 2005/02/21 09:02:51 Check negative value. Affected files ... .. //depot/projects/davidxu_thread/src/lib/libthread/thread/thr_concurrency.c#5 edit Differences ... ==== //depot/projects/davidxu_thread/src/lib/libthread/thread/thr_concurrency.c#5 (text+ko) ==== @@ -54,6 +54,9 @@ int _pthread_setconcurrency(int new_level) { - level = new_level; - return 0; + if (new_level > 0) { + level = new_level; + return (0); + } + return (EINVAL); }