Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 95125
b: refs/heads/master
c: 08d2c30
h: refs/heads/master
i:
  95123: 4743849
v: v3
  • Loading branch information
Oleg Nesterov authored and Linus Torvalds committed Apr 30, 2008
1 parent cfdc29d commit 13983fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3547ff3aefbe092ca35506c60c02e2d17a4f2199
refs/heads/master: 08d2c30ce98d274137f12b0a9b9c74137455922c
11 changes: 1 addition & 10 deletions trunk/kernel/signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -1138,8 +1138,7 @@ static int kill_something_info(int sig, struct siginfo *info, int pid)
*/

/*
* These two are the most common entry points. They send a signal
* just to the specific thread.
* The caller must ensure the task can't exit.
*/
int
send_sig_info(int sig, struct siginfo *info, struct task_struct *p)
Expand All @@ -1154,17 +1153,9 @@ send_sig_info(int sig, struct siginfo *info, struct task_struct *p)
if (!valid_signal(sig))
return -EINVAL;

/*
* We need the tasklist lock even for the specific
* thread case (when we don't need to follow the group
* lists) in order to avoid races with "p->sighand"
* going away or changing from under us.
*/
read_lock(&tasklist_lock);
spin_lock_irqsave(&p->sighand->siglock, flags);
ret = specific_send_sig_info(sig, info, p);
spin_unlock_irqrestore(&p->sighand->siglock, flags);
read_unlock(&tasklist_lock);
return ret;
}

Expand Down

0 comments on commit 13983fd

Please sign in to comment.