CONTRIB: debug: add the show-fd-to-flags script
This script reads the output of a "show fd" command and for each line showing a connection, will decode its flags by calling "flags".
This commit is contained in:
parent
c3890e5a2d
commit
6a54d74662
2
contrib/debug/show-fd-to-flags.sh
Executable file
2
contrib/debug/show-fd-to-flags.sh
Executable file
@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
awk '{print $12}' | grep cflg= | sort | uniq -c | sort -nr | while read a b; do c=${b##*=}; d=$(${0%/*}/flags conn $c);d=${d##*= }; printf "%6d %s %s\n" $a "$b" "$d";done
|
Loading…
x
Reference in New Issue
Block a user