Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 95123
b: refs/heads/master
c: 6e65acb
h: refs/heads/master
i:
  95121: 5a4ff1c
  95119: d1bd367
v: v3
  • Loading branch information
Oleg Nesterov authored and Linus Torvalds committed Apr 30, 2008
1 parent 2bae93d commit 4743849
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 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: c99fcf28b87d8cab592db7571e3164f5cb54c5b3
refs/heads/master: 6e65acba7ca8169e38ab55d62d52f29a75fb141f
11 changes: 3 additions & 8 deletions trunk/kernel/signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -660,8 +660,10 @@ static inline int legacy_queue(struct sigpending *signals, int sig)
static int send_signal(int sig, struct siginfo *info, struct task_struct *t,
struct sigpending *signals)
{
struct sigqueue * q = NULL;
struct sigqueue *q;

assert_spin_locked(&t->sighand->siglock);
handle_stop_signal(sig, t);
/*
* Short-circuit ignored signals and support queuing
* exactly one non-rt signal, so that we can get more
Expand Down Expand Up @@ -766,9 +768,6 @@ specific_send_sig_info(int sig, struct siginfo *info, struct task_struct *t)
{
int ret;

BUG_ON(!irqs_disabled());
assert_spin_locked(&t->sighand->siglock);

ret = send_signal(sig, info, t, &t->pending);
if (ret <= 0)
return ret;
Expand Down Expand Up @@ -923,9 +922,6 @@ __group_send_sig_info(int sig, struct siginfo *info, struct task_struct *p)
{
int ret;

assert_spin_locked(&p->sighand->siglock);
handle_stop_signal(sig, p);

/*
* Put this signal on the shared-pending queue, or fail with EAGAIN.
* We always use the shared queue for process-wide signals,
Expand Down Expand Up @@ -2241,7 +2237,6 @@ static int do_tkill(int tgid, int pid, int sig)
*/
if (!error && sig && p->sighand) {
spin_lock_irq(&p->sighand->siglock);
handle_stop_signal(sig, p);
error = specific_send_sig_info(sig, &info, p);
spin_unlock_irq(&p->sighand->siglock);
}
Expand Down

0 comments on commit 4743849

Please sign in to comment.