summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (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,2 +1,4 @@
+#include <signal.h>
+
#include "kprocess.h"
@@ -43,3 +45,3 @@ void Device::detach(){
//kill the pid
- ;
+ kill(pid, 9);
}
@@ -92,3 +94,3 @@ void Device::slotStdOut(KProcess* proc, char* chars, int len)
if(proc == m_process ){
- QCString string( chars );
+ QCString string( chars, len+1 );
if(string.left(3) != "CSR" ){ // it's the pid