[Konsole-devel] [Bug 87481] Konsole freezes on startup when unable to allocate PTY

Kurt V.Hindenburg kurt.hindenburg at kdemail.net
Fri Apr 8 18:41:44 UTC 2005


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=87481         




------- Additional Comments From kurt.hindenburg kdemail net  2005-04-08 20:41 -------
CVS commit by hindenburg: 

Try to be more helpful when unable to open a PTY.

CCBUGS: 87481


  M +6 -3      session.cpp   1.103


--- kdebase/konsole/konsole/session.cpp  #1.102:1.103
 @ -98,5 +98,8  @ void TESession::ptyError()
 {
   if ( sh->error().isEmpty() )
-    KMessageBox::error(te->topLevelWidget(), i18n("Unable to allocate a pseudo teletype!"));
+    KMessageBox::detailedError( te->topLevelWidget(),
+       i18n("Konsole is unable to open a pseudo teletype!"),
+       i18n("Konsole needs to have read/write access to the system's PTYs.  The exact location of the PTYs depends on the Linux kernel version (2.4.x or 2.6.x), the kernel configuration and which dev-filesystem (devfs or udev) is being used.  \nUsing Linux kernel 2.6.x and udev this is typically /dev/pts/"), 
+       i18n("A fatal error has occurred!") );
   else
     KMessageBox::error(te->topLevelWidget(), sh->error());
 @ -139,6 +142,6  @ void TESession::run()
           ("DCOPRef("+appId+",konsole)").latin1(),
           ("DCOPRef("+appId+","+sessionId+")").latin1());
-  if (result < 0) {     // Error in creating pseudo teletype
-    kdWarning()<<"Unable to allocate a pseudo teletype!"<<endl;
+  if (result < 0) {     // Error in opening pseudo teletype
+    kdWarning()<<"Unable to open a pseudo teletype!"<<endl;
     QTimer::singleShot(0, this, SLOT(ptyError()));
   }



More information about the konsole-devel mailing list