From 562bfea5939c13cc2f6e024c9fc4ab04b66b3736 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Wed, 13 Sep 2017 15:38:48 +0800 Subject: [PATCH] vty: Print open file descriptors of the VTY test runner /proc/self/fd refers to the process opening the file. In this case self will be "ls". Maybe it is better to look at the FDs open in the test runner itself. Change-Id: I638e94f16f4019a7b6026d1fae69e677870fb253 --- osmopy/obscvty.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osmopy/obscvty.py b/osmopy/obscvty.py index f1f1c59..0371dc9 100755 --- a/osmopy/obscvty.py +++ b/osmopy/obscvty.py @@ -43,7 +43,7 @@ def print_used_tcp_sockets(): global debug_tcp_sockets if not debug_tcp_sockets: return - cmd('ls /proc/self/fd'); + cmd('ls /proc/' + str(os.getpid()) + '/fd'); cmd('ss -tn'); cmd('ss -tln'); cmd('ps xua | grep osmo');