summaryrefslogtreecommitdiffstats
path: root/sys/compat/svr4/svr4_stream.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/compat/svr4/svr4_stream.c')
-rw-r--r--sys/compat/svr4/svr4_stream.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/compat/svr4/svr4_stream.c b/sys/compat/svr4/svr4_stream.c
index 87e8482..843a26b 100644
--- a/sys/compat/svr4/svr4_stream.c
+++ b/sys/compat/svr4/svr4_stream.c
@@ -216,8 +216,11 @@ svr4_sendit(p, s, mp, flags)
if (auio.uio_resid != len && (error == ERESTART ||
error == EINTR || error == EWOULDBLOCK))
error = 0;
- if (error == EPIPE)
+ if (error == EPIPE) {
+ PROC_LOCK(p);
psignal(p, SIGPIPE);
+ PROC_UNLOCK(p);
+ }
}
if (error == 0)
p->p_retval[0] = len - auio.uio_resid;
OpenPOWER on IntegriCloud