diff options
author | Oleg Nesterov <oleg@tv-sign.ru> | 2008-09-22 14:42:47 -0700 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2008-09-24 15:45:47 +0200 |
commit | 2cd499e38ec241691e4bce50bddc8f57e4cc9bd0 (patch) | |
tree | 6d0b1d89b92014b5b5177a56c244ac37cfae54d0 /Documentation/keys-request-key.txt | |
parent | 918fc0372831dca73039e1577bfea0c2ce49bdb6 (diff) |
posix-timers: sys_timer_create: remove the buggy PF_EXITING check
sys_timer_create() return -EINVAL if the target thread has PF_EXITING.
This doesn't really make sense, the sub-thread can die right after unlock.
And in fact, this is just wrong. Without SIGEV_THREAD_ID good_sigevent()
returns ->group_leader, and it is very possible that the leader is already
dead. This is OK, we shouldn't return the error in this case.
Remove this check and the comment. Note that the "process" was found
under tasklist_lock, it must have ->sighand != NULL.
Also, remove a couple of unneeded initializations.
Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Cc: mingo@elte.hu
Cc: Roland McGrath <roland@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'Documentation/keys-request-key.txt')
0 files changed, 0 insertions, 0 deletions