diff options
| author | Jonathan Mini <mini@FreeBSD.org> | 2002-09-16 19:52:52 +0000 |
|---|---|---|
| committer | Jonathan Mini <mini@FreeBSD.org> | 2002-09-16 19:52:52 +0000 |
| commit | 255ab70cdf6eb0005e7494657f35d318f666de50 (patch) | |
| tree | 19954471d255ce812e704c80bd079f406bc31378 /lib/libpthread/thread/thr_kill.c | |
| parent | 51f42932d165603bcfdafe9d900a392fd821a9eb (diff) | |
Notes
Diffstat (limited to 'lib/libpthread/thread/thr_kill.c')
| -rw-r--r-- | lib/libpthread/thread/thr_kill.c | 30 |
1 files changed, 2 insertions, 28 deletions
diff --git a/lib/libpthread/thread/thr_kill.c b/lib/libpthread/thread/thr_kill.c index a8a1fc63978e..24f9150d7136 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); } |
