summaryrefslogtreecommitdiffstats
path: root/sys/kern/sys_pipe.c
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1997-10-06 08:30:08 +0000
committerpeter <peter@FreeBSD.org>1997-10-06 08:30:08 +0000
commit34c2cc94e87e1b78a48db0efa194385de9bfad43 (patch)
tree7259ffdb959ce53b0c2388b2b8b4dbb6c64dbf0a /sys/kern/sys_pipe.c
parent41003c48a0572c7408eb9ab22609681bb53181df (diff)
downloadFreeBSD-src-34c2cc94e87e1b78a48db0efa194385de9bfad43.zip
FreeBSD-src-34c2cc94e87e1b78a48db0efa194385de9bfad43.tar.gz
Ack! Fix excessive cut/paste blunder during poll mods. Who had the
pointy hat last? :-] When one is selecting (or polling) for write, it helps if we use the write side of the pipe when requesting wakeups instead of the read side. This broke ghostview (at least) - I'm suprised it wasn't noticed for so long. Reviewed by: Greg Lehey <grog@lemis.com>
Diffstat (limited to 'sys/kern/sys_pipe.c')
-rw-r--r--sys/kern/sys_pipe.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/sys_pipe.c b/sys/kern/sys_pipe.c
index 07e7ebc..ebfe451 100644
--- a/sys/kern/sys_pipe.c
+++ b/sys/kern/sys_pipe.c
@@ -16,7 +16,7 @@
* 4. Modifications may be freely made to this file if the above conditions
* are met.
*
- * $Id: sys_pipe.c,v 1.32 1997/09/02 20:05:53 bde Exp $
+ * $Id: sys_pipe.c,v 1.33 1997/09/14 02:43:25 peter Exp $
*/
/*
@@ -1002,8 +1002,8 @@ pipe_poll(fp, events, cred, p)
}
if (events & (POLLOUT | POLLWRNORM)) {
- selrecord(p, &rpipe->pipe_sel);
- rpipe->pipe_state |= PIPE_SEL;
+ selrecord(p, &wpipe->pipe_sel);
+ wpipe->pipe_state |= PIPE_SEL;
}
}
OpenPOWER on IntegriCloud