mirror of
https://github.com/evilsocket/opensnitch.git
synced 2025-03-04 08:34:40 +01:00
Remove useless call to select.select in run. Fixes 100% cpu usage.
This commit is contained in:
parent
b594e9020f
commit
545d65f3f4
1 changed files with 0 additions and 4 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue