1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-25 16:13:17 +00:00

In raise(), use a shortcut to directly send signal to current thread.

This commit is contained in:
David Xu 2005-11-02 13:52:48 +00:00
parent 34333b16cd
commit 7f838bf429
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=151968

View File

@ -354,13 +354,8 @@ _raise(int sig)
if (!_thr_isthreaded())
ret = kill(getpid(), sig);
else {
ret = pthread_kill(pthread_self(), sig);
if (ret != 0) {
errno = ret;
ret = -1;
}
}
else
ret = _thr_send_sig(_get_curthread(), sig);
return (ret);
}