summaryrefslogtreecommitdiff
path: root/utilities/ovs-tcpdump.in
diff options
context:
space:
mode:
authornickcooper-zhangtonghao <nic@opencloud.tech>2016-11-14 01:24:12 -0800
committerBen Pfaff <blp@ovn.org>2016-11-22 15:13:42 -0800
commitb47d91a74073f4f94a77bc561bc2fb0d16b9f395 (patch)
tree1cc2711f91b3b9cef60c0ffd9e3833f4e760907f /utilities/ovs-tcpdump.in
parent013c1e708007c8ce40f451592e425dccb9d9f446 (diff)
downloadopenvswitch-b47d91a74073f4f94a77bc561bc2fb0d16b9f395.tar.gz
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 <nic@opencloud.tech> Signed-off-by: Ben Pfaff <blp@ovn.org> Acked-by: Aaron Conole <aconole@redhat.com>
Diffstat (limited to 'utilities/ovs-tcpdump.in')
-rwxr-xr-xutilities/ovs-tcpdump.in3
1 files changed, 0 insertions, 3 deletions
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()