diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2007-02-12 03:52:54 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-12 12:48:31 -0500 |
commit | 0e25338bc11fa8e41e44e4db5b5101e3d882dc5b (patch) | |
tree | 839595838acb1d9166191b192c0fa734ee0fdcbc /arch/sparc | |
parent | 2ea81868d8fba0bb56d7b45a08cc5f15dd2c6bb2 (diff) |
[PATCH] signal: use kill_pgrp not kill_pg in the sunos compatibility code
I am slowly moving to a model where all process killing is struct pid based
instead of pid_t based. The sunos compatibility code is one of the last users
of the old pid_t based kill_pg in the kernel. By being complete I allow for
the future removal of kill_pg from the kernel, which will ensure I don't miss
something.
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: Oleg Nesterov <oleg@tv-sign.ru>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/sparc')
-rw-r--r-- | arch/sparc/kernel/sys_sunos.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/arch/sparc/kernel/sys_sunos.c b/arch/sparc/kernel/sys_sunos.c index 0bf8c165fc92..da6606f0cffc 100644 --- a/arch/sparc/kernel/sys_sunos.c +++ b/arch/sparc/kernel/sys_sunos.c | |||
@@ -859,14 +859,16 @@ asmlinkage int sunos_wait4(pid_t pid, unsigned int __user *stat_addr, | |||
859 | return ret; | 859 | return ret; |
860 | } | 860 | } |
861 | 861 | ||
862 | extern int kill_pg(int, int, int); | ||
863 | asmlinkage int sunos_killpg(int pgrp, int sig) | 862 | asmlinkage int sunos_killpg(int pgrp, int sig) |
864 | { | 863 | { |
865 | int ret; | 864 | int ret; |
866 | 865 | ||
867 | lock_kernel(); | 866 | rcu_read_lock(); |
868 | ret = kill_pg(pgrp, sig, 0); | 867 | ret = -EINVAL; |
869 | unlock_kernel(); | 868 | if (pgrp > 0) |
869 | ret = kill_pgrp(find_pid(pgrp), sig, 0); | ||
870 | rcu_read_unlock(); | ||
871 | |||
870 | return ret; | 872 | return ret; |
871 | } | 873 | } |
872 | 874 | ||