summaryrefslogtreecommitdiff
path: root/tools/include/nolibc
diff options
context:
space:
mode:
authorWilly Tarreau <w@1wt.eu>2022-02-07 19:23:38 +0300
committerPaul E. McKenney <paulmck@kernel.org>2022-04-21 03:05:44 +0300
commit6e277371a5c4c73deb799aabfd5613ee3758e810 (patch)
treecd4a90a4d7d25bd557207e80a093f1f3b756e082 /tools/include/nolibc
parentac90226d53051c1ae0f0e1b71596fb038ddb6cf6 (diff)
downloadlinux-6e277371a5c4c73deb799aabfd5613ee3758e810.tar.xz
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>
Diffstat (limited to 'tools/include/nolibc')
-rw-r--r--tools/include/nolibc/stdlib.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/include/nolibc/stdlib.h b/tools/include/nolibc/stdlib.h
index db47362a750f..4cc1fdf6791e 100644
--- a/tools/include/nolibc/stdlib.h
+++ b/tools/include/nolibc/stdlib.h
@@ -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))