author | zecke <zecke> | 2002-06-01 12:46:35 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-06-01 12:46:35 (UTC) |
commit | 2815c0b50bd52d58022eb1d5f4364079a0e99e0a (patch) (unidiff) | |
tree | 587120ac88d743cb2a4a160df5cbe747db879b38 | |
parent | f386b95e1c9763bb9c5ea404c0824b45a744e151 (diff) | |
download | opie-2815c0b50bd52d58022eb1d5f4364079a0e99e0a.zip opie-2815c0b50bd52d58022eb1d5f4364079a0e99e0a.tar.gz opie-2815c0b50bd52d58022eb1d5f4364079a0e99e0a.tar.bz2 |
Small adjustments
-rw-r--r-- | noncore/net/opietooth/lib/device.cc | 6 |
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,3 +1,5 @@ | |||
1 | 1 | ||
2 | #include <signal.h> | ||
3 | |||
2 | #include "kprocess.h" | 4 | #include "kprocess.h" |
3 | 5 | ||
@@ -42,5 +44,5 @@ void Device::detach(){ | |||
42 | if(m_attached ) | 44 | if(m_attached ) |
43 | //kill the pid | 45 | //kill the pid |
44 | ; | 46 | kill(pid, 9); |
45 | } | 47 | } |
46 | bool Device::isLoaded()const{ | 48 | bool Device::isLoaded()const{ |
@@ -91,5 +93,5 @@ void Device::slotStdOut(KProcess* proc, char* chars, int len) | |||
91 | return; | 93 | return; |
92 | if(proc == m_process ){ | 94 | if(proc == m_process ){ |
93 | QCString string( chars ); | 95 | QCString string( chars, len+1 ); |
94 | if(string.left(3) != "CSR" ){ // it's the pid | 96 | if(string.left(3) != "CSR" ){ // it's the pid |
95 | pid = string.toInt(); | 97 | pid = string.toInt(); |