kill system call returned bad number

This commit is contained in:
Tomoki Shirasawa
2014-09-25 14:09:07 +09:00
parent a0c5d5c5de
commit ef52ba7607

View File

@ -552,12 +552,12 @@ do_kill(int pid, int tid, int sig, siginfo_t *info)
head = &tproc->sigpending;
}
rc = 0;
k = tproc->sighandler->action + sig - 1;
if(k->sa.sa_handler != (void *)1 &&
(k->sa.sa_handler != NULL ||
(sig != SIGCHLD && sig != SIGURG))){
pending = NULL;
rc = 0;
if(sig < 33){ // SIGRTMIN - SIGRTMAX
list_for_each_entry(pending, head, list){
if(pending->sigmask.__val[0] == mask)