repo.or.cz
/
musl.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
fix getaddrinfo regression with AI_ADDRCONFIG on some configurations
[musl.git]
/
src
/
thread
/
pthread_kill.c
blob
3d9395cb7e0a0b5797c962e4af2d22d95de93718
1
#include
"pthread_impl.h"
2
#include
"lock.h"
3
4
int
pthread_kill
(
pthread_t t
,
int
sig
)
5
{
6
int
r
;
7
LOCK
(
t
->
killlock
);
8
r
=
t
->
tid
? -
__syscall
(
SYS_tkill
,
t
->
tid
,
sig
)
9
: (
sig
+
0U
>=
_NSIG
?
EINVAL
:
0
);
10
UNLOCK
(
t
->
killlock
);
11
return
r
;
12
}