summaryrefslogtreecommitdiff
path: root/noncore/net/wellenreiter/gui/main.cpp
authormickeyl <mickeyl>2004-02-15 18:08:39 (UTC)
committer mickeyl <mickeyl>2004-02-15 18:08:39 (UTC)
commit4d467f290f7f42717be14bb0f269570fe5dd07bc (patch) (side-by-side diff)
tree9c50cc710f7f69f57eceece17635b0b5e5b3a0b9 /noncore/net/wellenreiter/gui/main.cpp
parent76be6ccdc364c609e86d74e6daa72438bc92e911 (diff)
downloadopie-4d467f290f7f42717be14bb0f269570fe5dd07bc.zip
opie-4d467f290f7f42717be14bb0f269570fe5dd07bc.tar.gz
opie-4d467f290f7f42717be14bb0f269570fe5dd07bc.tar.bz2
s/$1/%1/
Diffstat (limited to 'noncore/net/wellenreiter/gui/main.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/wellenreiter/gui/main.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/noncore/net/wellenreiter/gui/main.cpp b/noncore/net/wellenreiter/gui/main.cpp
index d32b362..8ef62e9 100644
--- a/noncore/net/wellenreiter/gui/main.cpp
+++ b/noncore/net/wellenreiter/gui/main.cpp
@@ -72,14 +72,16 @@ int main( int argc, char **argv )
if ( result == QMessageBox::No ) return -1;
}
- if ( OProcess::processPID( "dhcpc" ) )
+ int dhcpid = OProcess::processPID( "dhcpc" );
+
+ if ( dhcpid )
{
result = QMessageBox::warning( w, " - Wellenreiter II - (dhcp)", QObject::tr( "You have a dhcp client running.\n"
- "This can severly limit scanning!\nShould I kill it for you?" ),
+ "(PID = %1)\nThis can severly limit scanning!\nShould I kill it for you?" ).arg( dhcpid ),
QMessageBox::Yes, QMessageBox::No );
if ( result == QMessageBox::Yes )
{
- if ( -1 == ::kill( OProcess::processPID( "dhcpc" ), SIGTERM ) )
+ if ( -1 == ::kill( dhcpid, SIGTERM ) )
qWarning( "Wellenreiter: can't kill process #%d (%s)", result, strerror( errno ) );
else
killed = true;