Remove useless call to select.select in run. Fixes 100% cpu usage.

This commit is contained in:
adisbladis 2017-05-04 01:58:20 +08:00
parent b594e9020f
commit 545d65f3f4
Failed to generate hash of commit

View file

@ -121,9 +121,6 @@ class ProcMon(threading.Thread):
with open("/sys/kernel/debug/tracing/trace_pipe") as pipe:
while True:
try:
r, w, e = select.select([pipe], [], [], 0)
if pipe not in r:
continue
line = pipe.readline()
if ProcMon.PROBE_NAME in line:
@ -160,4 +157,3 @@ class ProcMon(threading.Thread):
except Exception as e:
logging.warning(e)