* Trivial patches for sparc64 in 2.5.7
@ 2002-03-19 13:52 Holzrichter, Bruce
2002-03-19 21:45 ` David S. Miller
0 siblings, 1 reply; 2+ messages in thread
From: Holzrichter, Bruce @ 2002-03-19 13:52 UTC (permalink / raw)
To: 'davem@redhat.com'; +Cc: 'linux-kernel@vger.kernel.org'
I can't imagine that you don't have these already, but here's some fixes to
/arch/sparc64 stuff to replace the p_pptr with parent on sparc64 that got
changed in 2.5.7
On a side note, I don't get to do to much with the kernel, so I hope my
little fixes and e-mails to you don't bug you too much. I like the sparc,
because it doesn't get as much traffic, and there's more room for finding
things like this as I teach myself more about the kernel internals.
Bruce H.
--- ./arch/sparc64/kernel/ptrace.c.old Tue Mar 19 08:28:18 2002
+++ ./arch/sparc64/kernel/ptrace.c Tue Mar 19 08:29:36 2002
@@ -194,7 +194,7 @@
goto out_tsk;
}
}
- if (child->p_pptr != current) {
+ if (child->parent != current) {
pt_error_return(regs, ESRCH);
goto out_tsk;
--- ./arch/sparc64/kernel/signal.c.old Tue Mar 19 08:36:08 2002
+++ ./arch/sparc64/kernel/signal.c Tue Mar 19 08:37:44 2002
@@ -729,8 +729,8 @@
info.si_signo = signr;
info.si_errno = 0;
info.si_code = SI_USER;
- info.si_pid = current->p_pptr->pid;
- info.si_uid = current->p_pptr->uid;
+ info.si_pid = current->parent->pid;
+ info.si_uid = current->parent->uid;
}
/* If the (new) signal is now blocked, requeue it.
*/
@@ -772,7 +772,7 @@
struct signal_struct *sig;
current->exit_code = signr;
- sig = current->p_pptr->sig;
+ sig = current->parent->sig;
preempt_disable();
current->state = TASK_STOPPED;
if (sig &&
!(sig->action[SIGCHLD-1].sa.sa_flags &
--- ./arch/sparc64/kernel/signal32.c.old Tue Mar 19 08:40:10 2002
+++ ./arch/sparc64/kernel/signal32.c Tue Mar 19 08:40:54 2002
@@ -1403,8 +1403,8 @@
info.si_signo = signr;
info.si_errno = 0;
info.si_code = SI_USER;
- info.si_pid = current->p_pptr->pid;
- info.si_uid = current->p_pptr->uid;
+ info.si_pid = current->parent->pid;
+ info.si_uid = current->parent->uid;
}
/* If the (new) signal is now blocked, requeue it.
*/
@@ -1446,7 +1446,7 @@
struct signal_struct *sig;
current->exit_code = signr;
- sig = current->p_pptr->sig;
+ sig = current->parent->sig;
preempt_disable();
current->state = TASK_STOPPED;
if (sig &&
!(sig->action[SIGCHLD-1].sa.sa_flags &
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Trivial patches for sparc64 in 2.5.7
2002-03-19 13:52 Trivial patches for sparc64 in 2.5.7 Holzrichter, Bruce
@ 2002-03-19 21:45 ` David S. Miller
0 siblings, 0 replies; 2+ messages in thread
From: David S. Miller @ 2002-03-19 21:45 UTC (permalink / raw)
To: bruce.holzrichter; +Cc: linux-kernel
From: "Holzrichter, Bruce" <bruce.holzrichter@monster.com>
Date: Tue, 19 Mar 2002 08:52:19 -0500
I can't imagine that you don't have these already, but here's some fixes to
/arch/sparc64 stuff to replace the p_pptr with parent on sparc64 that got
changed in 2.5.7
Thanks for the submission, but yes these are in my bitkeeper tree
already :-)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-03-19 21:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-03-19 13:52 Trivial patches for sparc64 in 2.5.7 Holzrichter, Bruce
2002-03-19 21:45 ` David S. Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).