From 2815c0b50bd52d58022eb1d5f4364079a0e99e0a Mon Sep 17 00:00:00 2001 From: zecke Date: Sat, 01 Jun 2002 12:46:35 +0000 Subject: Small adjustments --- (limited to 'noncore/net/opietooth/lib') diff --git a/noncore/net/opietooth/lib/device.cc b/noncore/net/opietooth/lib/device.cc index 0c552ea..468f191 100644 --- a/noncore/net/opietooth/lib/device.cc +++ b/noncore/net/opietooth/lib/device.cc @@ -1,4 +1,6 @@ +#include + #include "kprocess.h" #include "device.h" @@ -41,7 +43,7 @@ void Device::detach(){ // kill the pid we got if(m_attached ) //kill the pid - ; + kill(pid, 9); } bool Device::isLoaded()const{ return m_attached; @@ -90,7 +92,7 @@ void Device::slotStdOut(KProcess* proc, char* chars, int len) if( len <1 ) return; if(proc == m_process ){ - QCString string( chars ); + QCString string( chars, len+1 ); if(string.left(3) != "CSR" ){ // it's the pid pid = string.toInt(); }; -- cgit v0.9.0.2