diff options
author | David Xu <davidxu@FreeBSD.org> | 2010-09-13 07:18:00 +0000 |
---|---|---|
committer | David Xu <davidxu@FreeBSD.org> | 2010-09-13 07:18:00 +0000 |
commit | b749a04db32fc52b86810fee215f2097ee02dcf1 (patch) | |
tree | c0214f663618c872c3d91fe8d2c368dc750da115 | |
parent | 3a0d123e5f334b97fb036e5f43398aec3e1e3f52 (diff) |
Notes
-rw-r--r-- | lib/libthr/thread/thr_affinity.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/libthr/thread/thr_affinity.c b/lib/libthr/thread/thr_affinity.c index ae43fcb23907e..3f9322453f960 100644 --- a/lib/libthr/thread/thr_affinity.c +++ b/lib/libthr/thread/thr_affinity.c @@ -51,10 +51,6 @@ _pthread_setaffinity_np(pthread_t td, size_t cpusetsize, const cpuset_t *cpusetp if (error == -1) error = errno; } else if ((error = _thr_find_thread(curthread, td, 0)) == 0) { - if (td->state == PS_DEAD) { - THR_THREAD_UNLOCK(curthread, td); - return (EINVAL); - } tid = TID(td); error = cpuset_setaffinity(CPU_LEVEL_WHICH, CPU_WHICH_TID, tid, cpusetsize, cpusetp); |