Kernel: Remove unnecessary raise syscall

This commit is contained in:
2023-12-06 13:00:45 +02:00
parent 336daa2cc5
commit cdcc36efde
5 changed files with 10 additions and 21 deletions

View File

@@ -38,7 +38,6 @@ __BEGIN_DECLS
#define SYS_PIPE 35
#define SYS_DUP 36
#define SYS_DUP2 37
#define SYS_RAISE 38
#define SYS_KILL 39
#define SYS_SIGNAL 40
#define SYS_SIGNAL_DONE 41

View File

@@ -4,7 +4,8 @@
int raise(int sig)
{
return syscall(SYS_RAISE, sig);
// FIXME: won't work after multithreaded
return kill(getpid(), sig);
}
int kill(pid_t pid, int sig)