author | bipolar <bipolar> | 2002-03-04 04:28:46 (UTC) |
---|---|---|
committer | bipolar <bipolar> | 2002-03-04 04:28:46 (UTC) |
commit | ac86cb5631879684a1211c34659dc19f3d79c6d9 (patch) (unidiff) | |
tree | a1511578f2737d4f90961a1c206bfd925c05dc7e | |
parent | 12dc06073f172ecd221b8b5eb71ff63565045c1a (diff) | |
download | opie-ac86cb5631879684a1211c34659dc19f3d79c6d9.zip opie-ac86cb5631879684a1211c34659dc19f3d79c6d9.tar.gz opie-ac86cb5631879684a1211c34659dc19f3d79c6d9.tar.bz2 |
ljp: error code was wrong
-rw-r--r-- | noncore/settings/sysinfo/processinfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/settings/sysinfo/processinfo.cpp b/noncore/settings/sysinfo/processinfo.cpp index f9263ea..4ecb704 100644 --- a/noncore/settings/sysinfo/processinfo.cpp +++ b/noncore/settings/sysinfo/processinfo.cpp | |||
@@ -124,16 +124,16 @@ void ProcessInfo::viewProcess(QListViewItem *process) | |||
124 | switch( QMessageBox::information( this, (tr("Kill Process?")), | 124 | switch( QMessageBox::information( this, (tr("Kill Process?")), |
125 | (tr("You really want to kill\n"+command+" PID: "+pid+"?")), | 125 | (tr("You really want to kill\n"+command+" PID: "+pid+"?")), |
126 | (tr("Yes")), (tr("No")), 0 )){ | 126 | (tr("Yes")), (tr("No")), 0 )){ |
127 | case 0: // Yes clicked, | 127 | case 0: // Yes clicked, |
128 | { | 128 | { |
129 | bool ok; | 129 | bool ok; |
130 | pid_t child=pid.toInt(&ok,10); | 130 | pid_t child=pid.toInt(&ok,10); |
131 | if((kill(child,SIGKILL)) < 0) | 131 | if((kill(child,SIGKILL)) < 0) |
132 | perror("kill:SIGTERM"); | 132 | perror("kill:SIGKILL"); |
133 | } | 133 | } |
134 | break; | 134 | break; |
135 | case 1: // Cancel | 135 | case 1: // Cancel |
136 | break; | 136 | break; |
137 | }; | 137 | }; |
138 | //printf("Double click for PID: %s\n", process->text(0).stripWhiteSpace().latin1()); | 138 | //printf("Double click for PID: %s\n", process->text(0).stripWhiteSpace().latin1()); |
139 | } | 139 | } |