* Archie Cobbs <[EMAIL PROTECTED]> [000317 17:55] wrote:
> This bug has been around since at least 2.2.6 and is still present
> in RELENG_3, RELENG_4, and -current.
>
> http://www.freebsd.org/cgi/query-pr.cgi?pr=8324
>
> Is anyone planning to tackle it? What would be required to fix it?
> (it's not clear (to me anyway) from Bruce's description how hard
> this is to fix..)
I think Bruce sort of went off into a tangent with his diagnosis,
anyhow this is untested (of course :) ), but looks like the right
thing to do (from sys_pipe.c).
Perhaps the fcntls and ioctls aren't being propogated enough to set
the flags properly, but if they are then it should work sort of the
way SIGIO does, basically generating a signal for /some condition/
on a descriptor.
--
-Alfred Perlstein - [[EMAIL PROTECTED]|[EMAIL PROTECTED]]
Index: tty_pty.c
===================================================================
RCS file: /home/ncvs/src/sys/kern/tty_pty.c,v
retrieving revision 1.74
diff -u -u -r1.74 tty_pty.c
--- tty_pty.c 2000/02/09 03:32:11 1.74
+++ tty_pty.c 2000/03/18 06:12:55
@@ -337,6 +337,8 @@
selwakeup(&pti->pt_selw);
wakeup(TSA_PTC_WRITE(tp));
}
+ if ((tp->t_state & TS_ASYNC) && tp->t_sigio)
+ pgsigio(tp->t_sigio, SIGIO, 0);
}
static int
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message