OpenVZ Forum - RDF feed
type: channel
items: [PATCH] Use task_pgrp() and task_session() in irix

[PATCH] Use task_pgrp() and task_session() in irix
type: item
description: From: Sukadev Bhattiprolu <sukadev@us.ibm.com> Subject: [PATCH] Use task_pgrp() and task_session() in irix Replace process_group(p) and process_session(p) in IRIX files with container friendly interfaces (task_pgrp() and task_session). Signed-off-by: Sukadev Bhattiprolu <sukadev@us.ibm.com> Cc: Cedric Le Goater <clg@fr.ibm.com> Cc: Dave Hansen <haveblue@us.ibm.com> Cc: Serge Hallyn <serue@us.ibm.com> Cc: containers@lists.osdl.org --- arch/mips/kernel/irixelf.c | 4 ++-- arch/mips/kernel/irixsig.c | 2 +- arch/mips/kernel/sysirix.c | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) Index: lx26-20-mm1/arch/mips/kernel/irixelf.c =================================================================== --- lx26-20-mm1.orig/arch/mips/kernel/irixelf.c 2007-02-16 14:32:36.000000000 -0800 +++ lx26-20-mm1/arch/mips/kernel/irixelf.c 2007-02-16 15:46:49.000000000 -0800 @@ -1171,8 +1171,8 @@ static int irix_core_dump(long signr, st prstatus.pr_sighold = current->blocked.sig[0]; psinfo.pr_pid = prstatus.pr_pid = current->pid; psinfo.pr_ppid = prstatus.pr_ppid = current->parent->pid; - psinfo.pr_pgrp = prstatus.pr_pgrp = process_group(current); - psinfo.pr_sid = prstatus.pr_sid = process_session(current); + psinfo.pr_pgrp = prstatus.pr_pgrp = pid_nr(task_pgrp(current)); + psinfo.pr_sid = prstatus.pr_sid = pid_nr(task_session(current)); if (current->pid == current->tgid) { /* * This is the record for the group leader. Add in the Index: lx26-20-mm1/arch/mips/kernel/irixsig.c =================================================================== --- lx26-20-mm1.orig/arch/mips/kernel/irixsig.c 2007-02-04 10:44:54.000000000 -0800 +++ lx26-20-mm1/arch/mips/kernel/irixsig.c 2007-02-16 15:46:49.000000000 -0800 @@ -610,7 +610,7 @@ repeat: p = list_entry(_p,struct task_struct,sibling); if ((type == IRIX_P_PID) && p->pid != pid) continue; - if ((type == IRIX_P_PGID) && process_group(p) != pid) + if ((type == IRIX_P_PGID) && pid_nr(task_pgrp(p)) != pid) continue; if ((p->exit_signal != SIGCHLD))…
creator: Sukadev Bhattiprolu
date: 2007-02-22T23:35:05-00:00