[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdelibs/khtml/java
From:       Maks Orlovich <maksim () kde ! org>
Date:       2007-09-08 19:11:21
Message-ID: 1189278681.773528.3347.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 709974 by orlovich:

Make java work (apparently, anyway): 
1. don't block waiting for the appletserver to exit when we are trying to start it
2. give us commands from it..


 M  +5 -1      kjavaprocess.cpp  


--- trunk/KDE/kdelibs/khtml/java/kjavaprocess.cpp #709973:709974
@@ -51,6 +51,8 @@
              this, SLOT( slotReceivedData() ) );
     connect( this, SIGNAL( finished( int, QProcess::ExitStatus ) ),
              this, SLOT( slotExited() ) );
+    connect( this, SIGNAL( error(  QProcess::ProcessError ) ),
+             this, SLOT( slotExited() ) );
 
     d->jvmPath = "java";
     d->mainClass = "-help";
@@ -228,9 +230,11 @@
 
     kDebug(6100) << "Invoking JVM now...with arguments = " << KShell::joinArgs(args);
 
+    setOutputChannelMode(KProcess::SeparateChannels);
     setProgram( d->jvmPath, args );
     start();
-    return waitForFinished();
+
+    return waitForStarted();
 }
 
 void KJavaProcess::killJVM()
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic