From 115526d03ea47fa7efee6f7f4bd3ed8c88c0ddb2 Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Mon, 6 Oct 1997 08:30:08 +0000 Subject: [PATCH] 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 --- sys/kern/sys_pipe.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/kern/sys_pipe.c b/sys/kern/sys_pipe.c index 07e7ebc66c45..ebfe451b4f49 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; } }