Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Mar 2000 18:27:56 -0800
From:      Alfred Perlstein <bright@wintelcom.net>
To:        Archie Cobbs <archie@whistle.com>
Cc:        freebsd-current@FreeBSD.ORG
Subject:   Re: kern/8324
Message-ID:  <20000317182756.A14789@fw.wintelcom.net>
In-Reply-To: <200003180132.RAA89424@bubba.whistle.com>; from archie@whistle.com on Fri, Mar 17, 2000 at 05:32:40PM -0800
References:  <200003180132.RAA89424@bubba.whistle.com>

next in thread | previous in thread | raw e-mail | index | archive | help
* Archie Cobbs <archie@whistle.com> [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 - [bright@wintelcom.net|alfred@freebsd.org]

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 majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000317182756.A14789>