summaryrefslogtreecommitdiffstats
path: root/lib/libkse/thread/thr_suspend_np.c
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>1997-02-05 23:26:09 +0000
committerjulian <julian@FreeBSD.org>1997-02-05 23:26:09 +0000
commitc2f7c3e4893b6b5c4494d549b3645e06664bc1b1 (patch)
treeb2e6d3017e236268263978b585f2150cd10b1689 /lib/libkse/thread/thr_suspend_np.c
parent321f03c8eddd8cf5aa81836ff1932a74156d30cb (diff)
downloadFreeBSD-src-c2f7c3e4893b6b5c4494d549b3645e06664bc1b1.zip
FreeBSD-src-c2f7c3e4893b6b5c4494d549b3645e06664bc1b1.tar.gz
Submitted by: John Birrell
uthreads update from the author.
Diffstat (limited to 'lib/libkse/thread/thr_suspend_np.c')
-rw-r--r--lib/libkse/thread/thr_suspend_np.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libkse/thread/thr_suspend_np.c b/lib/libkse/thread/thr_suspend_np.c
index fb90c1d..d065b73 100644
--- a/lib/libkse/thread/thr_suspend_np.c
+++ b/lib/libkse/thread/thr_suspend_np.c
@@ -53,14 +53,14 @@ pthread_suspend_np(pthread_t thread)
_thread_seterrno(pthread,EINTR);
}
/* Suspend the thread. */
- pthread->state = PS_SUSPENDED;
+ PTHREAD_NEW_STATE(pthread,PS_SUSPENDED);
ret = 0;
}
}
/* Check if thread was not found. */
if (ret == -1) {
/* No such thread */
- _thread_seterrno(_thread_run,ESRCH);
+ errno = ESRCH;
}
return(ret);
}
OpenPOWER on IntegriCloud