From b47d91a74073f4f94a77bc561bc2fb0d16b9f395 Mon Sep 17 00:00:00 2001 From: nickcooper-zhangtonghao Date: Mon, 14 Nov 2016 01:24:12 -0800 Subject: ovs-tcpdump: should't halt when dumping traffic. when sys.stdin is passed to tcpdump via pipe, it will cause tcpdump to halt. Signed-off-by: nickcooper-zhangtonghao Signed-off-by: Ben Pfaff Acked-by: Aaron Conole --- utilities/ovs-tcpdump.in | 3 --- 1 file changed, 3 deletions(-) (limited to 'utilities/ovs-tcpdump.in') diff --git a/utilities/ovs-tcpdump.in b/utilities/ovs-tcpdump.in index 01e1f6d24..c189bc824 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() -- cgit v1.2.1