[ovs-dev] [PATCH 2/4] ovs-tcpdump: should't halt when dumping traffic.
nickcooper-zhangtonghao
nic at opencloud.tech
Mon Nov 7 17:06:49 UTC 2016
when sys.stdin is passed to tcpdump via pipe,
it will cause tcpdump to halt.
Signed-off-by: nickcooper-zhangtonghao <nic at opencloud.tech>
---
utilities/ovs-tcpdump.in | 3 ---
1 file changed, 3 deletions(-)
diff --git a/utilities/ovs-tcpdump.in b/utilities/ovs-tcpdump.in
index 01e1f6d..c189bc8 100755
--- a/utilities/ovs-tcpdump.in
+++ b/utilities/ovs-tcpdump.in
@@ -430,9 +430,6 @@ def main():
if len(data) == 0:
raise KeyboardInterrupt
print(data)
- if select.select([sys.stdin], [], [], 0.0)[0]:
- data_in = sys.stdin.read()
- pipes.stdin.write(data_in)
raise KeyboardInterrupt
except KeyboardInterrupt:
pipes.terminate()
--
1.8.3.1
More information about the dev
mailing list