struct task_struct *g, *p;
struct user_struct *user;
int error = -EINVAL;
struct task_struct *g, *p;
struct user_struct *user;
int error = -EINVAL;
- if (!who)
- who = process_group(current);
- do_each_task_pid(who, PIDTYPE_PGID, p) {
+ if (who)
+ pgrp = find_pid(who);
+ else
+ pgrp = task_pgrp(current);
+ do_each_pid_task(pgrp, PIDTYPE_PGID, p) {
struct task_struct *g, *p;
struct user_struct *user;
long niceval, retval = -ESRCH;
struct task_struct *g, *p;
struct user_struct *user;
long niceval, retval = -ESRCH;
- if (!who)
- who = process_group(current);
- do_each_task_pid(who, PIDTYPE_PGID, p) {
+ if (who)
+ pgrp = find_pid(who);
+ else
+ pgrp = task_pgrp(current);
+ do_each_pid_task(pgrp, PIDTYPE_PGID, p) {