Message ID | 1479115454-48163-3-git-send-email-nic@opencloud.tech |
---|---|
State | Accepted |
Headers | show |
nickcooper-zhangtonghao <nic@opencloud.tech> writes: > when sys.stdin is passed to tcpdump via pipe, > it will cause tcpdump to halt. > > Signed-off-by: nickcooper-zhangtonghao <nic@opencloud.tech> > --- On further investigation, there are other issues around supporting this properly, so: Acked-by: Aaron Conole <aconole@redhat.com>
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()
when sys.stdin is passed to tcpdump via pipe, it will cause tcpdump to halt. Signed-off-by: nickcooper-zhangtonghao <nic@opencloud.tech> --- utilities/ovs-tcpdump.in | 3 --- 1 file changed, 3 deletions(-)