When a writer opens a fifo, wake up the read socket for read, not the

write socket.

MFC after:	3 days
This commit is contained in:
Robert Watson 2005-09-12 10:07:21 +00:00
parent a1b9943657
commit ab5182012a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=150025

View File

@ -236,7 +236,7 @@ fifo_open(ap)
SOCKBUF_UNLOCK(&fip->fi_writesock->so_rcv);
if (fip->fi_readers > 0) {
wakeup(&fip->fi_readers);
sorwakeup(fip->fi_writesock);
sorwakeup(fip->fi_readsock);
}
}
}