[kde-freebsd] Konsole / kpty porting (long)
Martin Wilke
miwi at FreeBSD.org
Mon Jul 14 19:29:33 CEST 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Mon, Jul 14, 2008 at 11:36:49AM -0400, Kris Moore wrote:
> Pawe?? Wieczorek wrote:
> > Hi.
> >
> > Propably i find a solution for this problem (work on my host). Propably
> > FIONREAD is not well working for our tty_pty pseudo terminal driver.
> > When I used TIOCOUTQ instead of FIONREAD, then I get proper value
> > of available bytes to read.
> >
> > I am attaching a my helper program. If someone will still have problem
> > with kpty then can more easy work with device than modyfing kpty code.
> >
> >
> > !DSPAM:1,487b2f1120035676310706!
>
> GREAT!
>
> I can confirm this does work here, and Konsole is working now!!
>
> I've put together a patch file if anybody wants to try it out. Just
> throw this file into /usr/ports/x11/kdelibs4/files and reinstall
> kdelibs. Is there any chance we can get this thrown into area51? This is
> a huge bug fixed :)
Fixed Thanks all!
>
>
> --
>
> Kris Moore
> PC-BSD Software
> http://www.pcbsd.com
> --- ../kpty/kptydevice.cpp.orig 2008-07-14 10:04:55.000000000 -0400
> +++ ../kpty/kptydevice.cpp 2008-07-14 10:05:24.000000000 -0400
> @@ -265,7 +265,8 @@
> #else
> int available;
> #endif
> - if (!::ioctl(q->masterFd(), FIONREAD, (char *) &available)) {
> + //if (!::ioctl(q->masterFd(), FIONREAD, (char *) &available)) {
> + if (!::ioctl(q->masterFd(), TIOCOUTQ, (char *) &available)) {
> char *ptr = readBuffer.reserve(available);
> NO_INTR(readBytes, read(q->masterFd(), ptr, available));
> if (readBytes < 0) {
> _______________________________________________
> kde-freebsd mailing list
> kde-freebsd at kde.org
> https://mail.kde.org/mailman/listinfo/kde-freebsd
- --
+-----------------------+-------------------------------+
| PGP : 0x05682353 | Jabber : miwi(at)BSDCrew.de |
| ICQ : 169139903 | Mail : miwi(at)FreeBSD.org |
+-----------------------+-------------------------------+
| Mess with the Best, Die like the Rest! |
+-----------------------+-------------------------------+
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (FreeBSD)
iEYEARECAAYFAkh7jPwACgkQFwpycAVoI1N2iQCeKrZr/IeGcja7x9xiC7St9Gra
UIEAn1He/vOs6Yneh6HS9tSfJqOpoHLh
=jDhT
-----END PGP SIGNATURE-----
More information about the kde-freebsd
mailing list