diff options
| author | Robert Watson <rwatson@FreeBSD.org> | 2021-01-01 13:04:46 +0000 |
|---|---|---|
| committer | Robert Watson <rwatson@FreeBSD.org> | 2021-01-10 12:16:39 +0000 |
| commit | 4f2cbaf3cd5900b06d3b5ad97db1962ec4fa0ffd (patch) | |
| tree | 8d5c0c2c3cf906896c9c4b76e0666802f2edf027 /sys/kern/sys_pipe.c | |
| parent | 3d65fd97e85ab807f3baa62aa979ae527914a3ea (diff) | |
Diffstat (limited to 'sys/kern/sys_pipe.c')
| -rw-r--r-- | sys/kern/sys_pipe.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/kern/sys_pipe.c b/sys/kern/sys_pipe.c index 76ab7bab05f7..558337794950 100644 --- a/sys/kern/sys_pipe.c +++ b/sys/kern/sys_pipe.c @@ -857,6 +857,8 @@ unlocked_error: pipeselwakeup(rpipe); PIPE_UNLOCK(rpipe); + if (nread > 0) + td->td_ru.ru_msgrcv++; return (error); } @@ -1314,6 +1316,8 @@ pipe_write(struct file *fp, struct uio *uio, struct ucred *active_cred, pipeunlock(wpipe); PIPE_UNLOCK(rpipe); + if (uio->uio_resid != orig_resid) + td->td_ru.ru_msgsnd++; return (error); } |
