summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/kern/sys_pipe.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/sys_pipe.c b/sys/kern/sys_pipe.c
index d79a319..a237d97 100644
--- a/sys/kern/sys_pipe.c
+++ b/sys/kern/sys_pipe.c
@@ -1176,6 +1176,8 @@ pipe_write(fp, uio, active_cred, flags, td)
("Pipe buffer overflow"));
}
pipeunlock(wpipe);
+ if (error != 0)
+ break;
} else {
/*
* If the "read-side" has been blocked, wake it up now.
OpenPOWER on IntegriCloud