X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=kernel%2Fexit.c;h=f132349c032569c94d4b3cd710b0c74fe8d0eec5;hb=73d605d1abbd70ef67b7660cf2ff177259960756;hp=407b80aaefdaf97af054f2e1bb54d6b8bed00cf9;hpb=0475ac0845f9295bc5f69af45f58dff2c104c8d1;p=linux-2.6 diff --git a/kernel/exit.c b/kernel/exit.c index 407b80aaef..f132349c03 100644 --- a/kernel/exit.c +++ b/kernel/exit.c @@ -229,12 +229,12 @@ static int will_become_orphaned_pgrp(struct pid *pgrp, struct task_struct *ignor return ret; /* (sighing) "Often!" */ } -int is_orphaned_pgrp(int pgrp) +int is_current_pgrp_orphaned(void) { int retval; read_lock(&tasklist_lock); - retval = will_become_orphaned_pgrp(find_pid(pgrp), NULL); + retval = will_become_orphaned_pgrp(task_pgrp(current), NULL); read_unlock(&tasklist_lock); return retval;