Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Feb 2005 09:03:21 GMT
From:      David Xu <davidxu@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 71449 for review
Message-ID:  <200502210903.j1L93LQn012608@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200502210903.j1L93LQn012608>