git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
userspace fun: maze game and a new device to support it
[lunaix-os.git]
/
lunaix-os
/
kernel
/
process
/
signal.c
diff --git
a/lunaix-os/kernel/process/signal.c
b/lunaix-os/kernel/process/signal.c
index e40526ee9bb6fd2583a286e2645ffadfefcc71a3..eef5c7ba4f72b3a57d08d5059f1067fa01622872 100644
(file)
--- a/
lunaix-os/kernel/process/signal.c
+++ b/
lunaix-os/kernel/process/signal.c
@@
-147,8
+147,7
@@
int
signal_send(pid_t pid, signum_t signum)
{
if (signum >= _SIG_NUM) {
signal_send(pid_t pid, signum_t signum)
{
if (signum >= _SIG_NUM) {
- syscall_result(EINVAL);
- return -1;
+ return EINVAL;
}
pid_t sender_pid = __current->pid;
}
pid_t sender_pid = __current->pid;
@@
-166,8
+165,7
@@
signal_send(pid_t pid, signum_t signum)
} else {
// TODO: send to all process.
// But I don't want to support it yet.
} else {
// TODO: send to all process.
// But I don't want to support it yet.
- syscall_result(EINVAL);
- return -1;
+ return EINVAL;
}
send_grp: ;
}
send_grp: ;
@@
-179,8
+177,7
@@
send_grp: ;
send_single:
if (proc_terminated(proc)) {
send_single:
if (proc_terminated(proc)) {
- syscall_result(EINVAL);
- return -1;
+ return EINVAL;
}
proc_setsignal(proc, signum);
}
proc_setsignal(proc, signum);
@@
-358,7
+355,7
@@
__DEFINE_LXSYSCALL(int, pause)
__DEFINE_LXSYSCALL2(int, kill, pid_t, pid, int, signum)
{
__DEFINE_LXSYSCALL2(int, kill, pid_t, pid, int, signum)
{
- return s
ignal_send(pid, signum
);
+ return s
yscall_result(signal_send(pid, signum)
);
}
__DEFINE_LXSYSCALL1(int, sigpending, sigset_t, *sigset)
}
__DEFINE_LXSYSCALL1(int, sigpending, sigset_t, *sigset)