At Tue, 12 Mar 2002 11:11:52 +0000 (GMT),
Alan Cox wrote:
>
> > I am now trying to implement gcore system call on linux and have a
> > great interest in your patch.
>
> The old Berkeley gcore wasnt a system call nor did it need to be. Ptrace
> (and in their case grovelling around in /dev/mem) is more than sufficient
IMHO, implementing gcore with ptrace has some problems, I think. If the process sleeps
with TASK_UNINTERRUPTIBLE, almost ptrace() calls fails. If the process is already traced,
you cannot use ptrace().
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/