projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac90226
)
tools/nolibc/stdlib: make raise() use the lower level syscalls only
author
Willy Tarreau
<w@1wt.eu>
Mon, 7 Feb 2022 16:23:38 +0000
(17:23 +0100)
committer
Paul E. McKenney
<paulmck@kernel.org>
Thu, 21 Apr 2022 00:05:44 +0000
(17:05 -0700)
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>
tools/include/nolibc/stdlib.h
patch
|
blob
|
history
diff --git
a/tools/include/nolibc/stdlib.h
b/tools/include/nolibc/stdlib.h
index db47362a750f7c82034764d80e1558dce9cf7c6c..4cc1fdf6791e0ecb1ce51cd4e89d0fd5b703bd59 100644
(file)
--- 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))