summaryrefslogtreecommitdiff
path: root/noncore/net
authorzecke <zecke>2002-06-01 12:46:35 (UTC)
committer zecke <zecke>2002-06-01 12:46:35 (UTC)
commit2815c0b50bd52d58022eb1d5f4364079a0e99e0a (patch) (side-by-side diff)
tree587120ac88d743cb2a4a160df5cbe747db879b38 /noncore/net
parentf386b95e1c9763bb9c5ea404c0824b45a744e151 (diff)
downloadopie-2815c0b50bd52d58022eb1d5f4364079a0e99e0a.zip
opie-2815c0b50bd52d58022eb1d5f4364079a0e99e0a.tar.gz
opie-2815c0b50bd52d58022eb1d5f4364079a0e99e0a.tar.bz2
Small adjustments
Diffstat (limited to 'noncore/net') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opietooth/lib/device.cc6
1 files changed, 4 insertions, 2 deletions
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 <signal.h>
+
#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();
};