mirror of
https://github.com/torvalds/linux.git
synced 2024-11-27 14:41:39 +00:00
tools/nolibc/stdlib: make raise() use the lower level syscalls only
raise() doesn't set errno, so there's no point calling kill(), better call sys_kill(), which also reduces the function's size. Signed-off-by: Willy Tarreau <w@1wt.eu> Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
This commit is contained in:
parent
ac90226d53
commit
6e277371a5
@ -317,7 +317,7 @@ int msleep(unsigned int msecs)
|
||||
__attribute__((weak,unused))
|
||||
int raise(int signal)
|
||||
{
|
||||
return kill(getpid(), signal);
|
||||
return sys_kill(sys_getpid(), signal);
|
||||
}
|
||||
|
||||
static __attribute__((unused))
|
||||
|
Loading…
Reference in New Issue
Block a user