File patch-r894303.diff of Package kdelibs4

Subject: fix konsole hangs on insert long texts
From: wstephenson@suse.de
Bug: kde#164946 bnc#481612
Patch-upstream: 894303
--- kpty/kptydevice.cpp	(revision 894302)
+++ kpty/kptydevice.cpp	(revision 894303)
@@ -33,6 +33,7 @@
 #include <errno.h>
 #include <signal.h>
 #include <termios.h>
+#include <fcntl.h>
 #include <sys/ioctl.h>
 #ifdef HAVE_SYS_FILIO_H
 # include <sys/filio.h>
@@ -412,6 +413,7 @@ void KPtyDevicePrivate::finishOpen(QIODe
     Q_Q(KPtyDevice);
 
     q->QIODevice::open(mode);
+    fcntl(q->masterFd(), F_SETFL, O_NONBLOCK);
     readBuffer.clear();
     readNotifier = new QSocketNotifier(q->masterFd(), QSocketNotifier::Read, q);
     writeNotifier = new QSocketNotifier(q->masterFd(), QSocketNotifier::Write, q);
Index: kpty/kptydevice.cpp
===================================================================
openSUSE Build Service is sponsored by