when sys.stdin is passed to tcpdump via pipe, it will cause tcpdump to halt.
Signed-off-by: nickcooper-zhangtonghao <n...@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 _______________________________________________ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev