From owner-cvs-sys Sat Mar 30 07:03:11 1996 Return-Path: owner-cvs-sys Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id HAA09013 for cvs-sys-outgoing; Sat, 30 Mar 1996 07:03:11 -0800 (PST) Received: (from peter@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id HAA08997 Sat, 30 Mar 1996 07:03:02 -0800 (PST) Date: Sat, 30 Mar 1996 07:03:02 -0800 (PST) From: Peter Wemm Message-Id: <199603301503.HAA08997@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-sys Subject: cvs commit: src/sys/kern sys_process.c Sender: owner-cvs-sys@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk peter 96/03/30 07:03:01 Modified: sys/kern sys_process.c Log: Because of the way that ptrace() now calls procfs routines to read/write the process's memory, it was possible for the procfs_domem() call to return a residual leftover, but with no errno. Since this is no good for ptrace which ignored the the residual, remap a leftover amount into an errno rather than fooling the caller into thinking it was successful when in fact it was not. Submitted by: bde (a very long time ago :-) Revision Changes Path 1.22 +16 -2 src/sys/kern/sys_process.c