summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xtuna/tuna.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tuna/tuna.py b/tuna/tuna.py
index f5184fb..78a399c 100755
--- a/tuna/tuna.py
+++ b/tuna/tuna.py
@@ -142,6 +142,8 @@ def list_to_cpustring(l):
# FIXME: move to python-linux-procfs
def is_hardirq_handler(self, pid):
PF_HARDIRQ = 0x08000000
+ if not self.processes.has_key(pid):
+ return False
return int(self.processes[pid]["stat"]["flags"]) & \
PF_HARDIRQ and True or False