summaryrefslogtreecommitdiff
authorbipolar <bipolar>2002-03-04 03:46:00 (UTC)
committer bipolar <bipolar>2002-03-04 03:46:00 (UTC)
commit12dc06073f172ecd221b8b5eb71ff63565045c1a (patch) (unidiff)
tree92380d8d2f957418c65bccdff95e2a004045466e
parent6f2ff65bfac36e80cd9e6c9977545a4b85d3b3af (diff)
downloadopie-12dc06073f172ecd221b8b5eb71ff63565045c1a.zip
opie-12dc06073f172ecd221b8b5eb71ff63565045c1a.tar.gz
opie-12dc06073f172ecd221b8b5eb71ff63565045c1a.tar.bz2
committed by ljp (llornkcor) changed SIGTERM to SIGKILL for those stubborn stains
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/sysinfo/processinfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/settings/sysinfo/processinfo.cpp b/noncore/settings/sysinfo/processinfo.cpp
index 8e992d5..f9263ea 100644
--- a/noncore/settings/sysinfo/processinfo.cpp
+++ b/noncore/settings/sysinfo/processinfo.cpp
@@ -115,25 +115,25 @@ void ProcessInfo::updateData()
115 115
116 delete proclist; 116 delete proclist;
117 delete procdir; 117 delete procdir;
118} 118}
119 119
120void ProcessInfo::viewProcess(QListViewItem *process) 120void ProcessInfo::viewProcess(QListViewItem *process)
121{ 121{
122 QString pid= process->text(0); 122 QString pid= process->text(0);
123 QString command = process->text(1); 123 QString command = process->text(1);
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,SIGTERM)) < 0) 131 if((kill(child,SIGKILL)) < 0)
132 perror("kill:SIGTERM"); 132 perror("kill:SIGTERM");
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}