mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-26 22:23:08 +00:00
MFS 1.10.2.5: Unbreak read/write behavior (introduced in previous revision).
This commit is contained in:
parent
ade7758ade
commit
2c14da046f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/releng/4.3/; revision=120752
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user