diff options
author | Oleg Nesterov <oleg@tv-sign.ru> | 2008-04-30 09:52:55 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-30 17:29:36 +0200 |
commit | 5fcd835bf8c2cde06404559b1904e2f1dfcb4567 (patch) | |
tree | c370d13b34d7c516c449427aebfde5bd29c83489 /samples/Makefile | |
parent | signals: change send_signal/do_send_sigqueue to take "boolean group" parameter (diff) | |
download | linux-5fcd835bf8c2cde06404559b1904e2f1dfcb4567.tar.xz linux-5fcd835bf8c2cde06404559b1904e2f1dfcb4567.zip |
signals: use __group_complete_signal() for the specific signals too
Based on Pavel Emelyanov's suggestion.
Rename __group_complete_signal() to complete_signal() and use it to process
the specific signals too. To do this we simply add the "int group" argument.
This allows us to greatly simply the signal-sending code and adds a useful
behaviour change. We can avoid the unneeded wakeups for the private signals
because wants_signal() is more clever than sigismember(blocked), but more
importantly we now take into account the fatal specific signals too.
The latter allows us to kill some subtle checks in handle_stop_signal() and
makes the specific/group signal's behaviour more consistent. For example,
currently sigtimedwait(FATAL_SIGNAL) behaves differently depending on was the
signal sent by kill() or tkill() if the signal was not blocked.
And. This allows us to tweak/fix the behaviour when the specific signal is
sent to the dying/dead ->group_leader.
Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Cc: Roland McGrath <roland@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'samples/Makefile')
0 files changed, 0 insertions, 0 deletions