MFS 1.10.2.5: Unbreak read/write behavior (introduced in previous revision).

This commit is contained in:
Jacques Vidrine 2003-10-04 16:14:25 +00:00
parent ade7758ade
commit 2c14da046f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/releng/4.3/; revision=120752

View File

@ -57,8 +57,6 @@ procfs_doregs(curp, p, pfs, uio)
{
int error;
struct reg r;
char *kv;
int kl;
/* Can't trace a process that's currently exec'ing. */
if ((p->p_flag & P_INEXEC) != 0)
@ -70,7 +68,7 @@ procfs_doregs(curp, p, pfs, uio)
error = procfs_read_regs(p, &r);
if (error == 0)
error = uiomove(&r, sizeof(r), uio);
error = uiomove_frombuf(&r, sizeof(r), uio);
if (error == 0 && uio->uio_rw == UIO_WRITE) {
if (p->p_stat != SSTOP)
error = EBUSY;