summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/thread/thr_kill.c
diff options
context:
space:
mode:
authormini <mini@FreeBSD.org>2002-09-16 19:52:52 +0000
committermini <mini@FreeBSD.org>2002-09-16 19:52:52 +0000
commit6077cee24228562d15e285d132213eeb718439b7 (patch)
tree19954471d255ce812e704c80bd079f406bc31378 /lib/libpthread/thread/thr_kill.c
parented825a4bd02ff20716e59e0da4db93b761df2734 (diff)
downloadFreeBSD-src-6077cee24228562d15e285d132213eeb718439b7.zip
FreeBSD-src-6077cee24228562d15e285d132213eeb718439b7.tar.gz
Make libpthread KSE aware.
Reviewed by: deischen, julian Approved by: -arch
Diffstat (limited to 'lib/libpthread/thread/thr_kill.c')
-rw-r--r--lib/libpthread/thread/thr_kill.c30
1 files changed, 2 insertions, 28 deletions
diff --git a/lib/libpthread/thread/thr_kill.c b/lib/libpthread/thread/thr_kill.c
index a8a1fc6..24f9150 100644
--- a/lib/libpthread/thread/thr_kill.c
+++ b/lib/libpthread/thread/thr_kill.c
@@ -41,34 +41,8 @@ __weak_reference(_pthread_kill, pthread_kill);
int
_pthread_kill(pthread_t pthread, int sig)
{
- int ret;
-
- /* Check for invalid signal numbers: */
- if (sig < 0 || sig >= NSIG)
- /* Invalid signal: */
- ret = EINVAL;
/*
- * Ensure the thread is in the list of active threads, and the
- * signal is valid (signal 0 specifies error checking only) and
- * not being ignored:
+ * All signals are unsupported.
*/
- else if (((ret = _find_thread(pthread)) == 0) && (sig > 0) &&
- (_thread_sigact[sig - 1].sa_handler != SIG_IGN)) {
- /*
- * Defer signals to protect the scheduling queues from
- * access by the signal handler:
- */
- _thread_kern_sig_defer();
-
- _thread_sig_send(pthread, sig);
-
- /*
- * Undefer and handle pending signals, yielding if
- * necessary:
- */
- _thread_kern_sig_undefer();
- }
-
- /* Return the completion status: */
- return (ret);
+ return (EINVAL);
}
OpenPOWER on IntegriCloud