|
|
|
@ -13992,7 +13992,7 @@ void KVpnc::readFromStderr_ipsecwhack()
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void KVpnc::readFromStdout_ipsecwhactdelisten()
|
|
|
|
|
void KVpnc::readFromStdout_ipsecwhacklisten()
|
|
|
|
|
{
|
|
|
|
|
if ( IpsecWhackListenProcess == 0 || IpsecGotError )
|
|
|
|
|
return;
|
|
|
|
@ -14142,7 +14142,7 @@ void KVpnc::readFromStdout_ipsecwhactdelisten()
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void KVpnc::readFromStderr_ipsecwhactdelisten()
|
|
|
|
|
void KVpnc::readFromStderr_ipsecwhacklisten()
|
|
|
|
|
{
|
|
|
|
|
bool abort = false;
|
|
|
|
|
if ( IpsecWhackListenProcess ==0 || IpsecGotError )
|
|
|
|
@ -14168,8 +14168,8 @@ void KVpnc::readFromStderr_ipsecwhactdelisten()
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
// we have to give some time to sleep and try again...
|
|
|
|
|
connect ( IpsecWhackListenProcess, TQT_SIGNAL ( readyReadStdout() ), this, TQT_SLOT ( readFromStdout_ipsecwhactdelisten() ) );
|
|
|
|
|
connect ( IpsecWhackListenProcess, TQT_SIGNAL ( readyReadStderr() ), this, TQT_SLOT ( readFromStderr_ipsecwhactdelisten() ) );
|
|
|
|
|
connect ( IpsecWhackListenProcess, TQT_SIGNAL ( readyReadStdout() ), this, TQT_SLOT ( readFromStdout_ipsecwhacklisten() ) );
|
|
|
|
|
connect ( IpsecWhackListenProcess, TQT_SIGNAL ( readyReadStderr() ), this, TQT_SLOT ( readFromStderr_ipsecwhacklisten() ) );
|
|
|
|
|
IpsecWhackListenProcess->tryTerminate();
|
|
|
|
|
sleep ( 2 );
|
|
|
|
|
if ( IpsecWhackListenProcess->isRunning() )
|
|
|
|
@ -21416,13 +21416,13 @@ void KVpnc::ipsecStarted()
|
|
|
|
|
IpsecWhackListenProcess->addArgument ( "whack" );
|
|
|
|
|
IpsecWhackListenProcess->addArgument ( "--listen" );
|
|
|
|
|
|
|
|
|
|
connect ( IpsecWhackListenProcess, TQT_SIGNAL ( readyReadStdout() ), this, TQT_SLOT ( readFromStdout_ipsecwhactdelisten() ) );
|
|
|
|
|
connect ( IpsecWhackListenProcess, TQT_SIGNAL ( readyReadStderr() ), this, TQT_SLOT ( readFromStderr_ipsecwhactdelisten() ) );
|
|
|
|
|
connect ( IpsecWhackListenProcess, TQT_SIGNAL ( readyReadStdout() ), this, TQT_SLOT ( readFromStdout_ipsecwhacklisten() ) );
|
|
|
|
|
connect ( IpsecWhackListenProcess, TQT_SIGNAL ( readyReadStderr() ), this, TQT_SLOT ( readFromStderr_ipsecwhacklisten() ) );
|
|
|
|
|
|
|
|
|
|
if ( !IpsecWhackListenProcess->start ( env ) )
|
|
|
|
|
{
|
|
|
|
|
disconnect ( IpsecWhackListenProcess, TQT_SIGNAL ( readyReadStdout() ), this, TQT_SLOT ( readFromStdout_ipsecwhactdelisten() ) );
|
|
|
|
|
disconnect ( IpsecWhackListenProcess, TQT_SIGNAL ( readyReadStderr() ), this, TQT_SLOT ( readFromStderr_ipsecwhactdelisten() ) );
|
|
|
|
|
disconnect ( IpsecWhackListenProcess, TQT_SIGNAL ( readyReadStdout() ), this, TQT_SLOT ( readFromStdout_ipsecwhacklisten() ) );
|
|
|
|
|
disconnect ( IpsecWhackListenProcess, TQT_SIGNAL ( readyReadStderr() ), this, TQT_SLOT ( readFromStderr_ipsecwhacklisten() ) );
|
|
|
|
|
delete IpsecWhackListenProcess;
|
|
|
|
|
IpsecWhackListenProcess=0L;
|
|
|
|
|
KMessageBox::error ( this, i18n ( "\"%1\" start failed!" ).arg ( GlobalConfig->pathToIpsec+" whack' --listen" ) );
|
|
|
|
|