Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 95132
b: refs/heads/master
c: ac5c215
h: refs/heads/master
v: v3
  • Loading branch information
Oleg Nesterov authored and Linus Torvalds committed Apr 30, 2008
1 parent c42e7e9 commit edb1423
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 21 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: e62e6650e99a3dffcd0bf0d063cd818fbc13fa95
refs/heads/master: ac5c215383f43a106ba4ef298126bf78c126f5e9
3 changes: 1 addition & 2 deletions trunk/include/linux/sched.h
Original file line number Diff line number Diff line change
Expand Up @@ -1751,8 +1751,7 @@ extern void zap_other_threads(struct task_struct *p);
extern int kill_proc(pid_t, int, int);
extern struct sigqueue *sigqueue_alloc(void);
extern void sigqueue_free(struct sigqueue *);
extern int send_sigqueue(int, struct sigqueue *, struct task_struct *);
extern int send_group_sigqueue(int, struct sigqueue *, struct task_struct *);
extern int send_sigqueue(struct sigqueue *, struct task_struct *, int group);
extern int do_sigaction(int, struct k_sigaction *, struct k_sigaction *);
extern int do_sigaltstack(const stack_t __user *, stack_t __user *, unsigned long);

Expand Down
6 changes: 2 additions & 4 deletions trunk/kernel/posix-timers.c
Original file line number Diff line number Diff line change
Expand Up @@ -310,8 +310,7 @@ int posix_timer_event(struct k_itimer *timr,int si_private)

if (timr->it_sigev_notify & SIGEV_THREAD_ID) {
struct task_struct *leader;
int ret = send_sigqueue(timr->it_sigev_signo, timr->sigq,
timr->it_process);
int ret = send_sigqueue(timr->sigq, timr->it_process, 0);

if (likely(ret >= 0))
return ret;
Expand All @@ -322,8 +321,7 @@ int posix_timer_event(struct k_itimer *timr,int si_private)
timr->it_process = leader;
}

return send_group_sigqueue(timr->it_sigev_signo, timr->sigq,
timr->it_process);
return send_sigqueue(timr->sigq, timr->it_process, 1);
}
EXPORT_SYMBOL_GPL(posix_timer_event);

Expand Down
15 changes: 1 addition & 14 deletions trunk/kernel/signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -1240,8 +1240,7 @@ void sigqueue_free(struct sigqueue *q)
__sigqueue_free(q);
}

static int do_send_sigqueue(struct sigqueue *q, struct task_struct *t,
int group)
int send_sigqueue(struct sigqueue *q, struct task_struct *t, int group)
{
int sig = q->info.si_signo;
struct sigpending *pending;
Expand All @@ -1266,7 +1265,6 @@ static int do_send_sigqueue(struct sigqueue *q, struct task_struct *t,
* If an SI_TIMER entry is already queue just increment
* the overrun count.
*/

BUG_ON(q->info.si_code != SI_TIMER);
q->info.si_overrun++;
goto out;
Expand All @@ -1283,17 +1281,6 @@ static int do_send_sigqueue(struct sigqueue *q, struct task_struct *t,
return ret;
}

int send_sigqueue(int sig, struct sigqueue *q, struct task_struct *p)
{
return do_send_sigqueue(q, p, 0);
}

int
send_group_sigqueue(int sig, struct sigqueue *q, struct task_struct *p)
{
return do_send_sigqueue(q, p, 1);
}

/*
* Wake up any threads in the parent blocked in wait* syscalls.
*/
Expand Down

0 comments on commit edb1423

Please sign in to comment.