From 7b368832344d8e7c68065f10323aa239eb0f3a8d Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Fri, 9 Mar 2012 23:56:05 +0100 Subject: tap: show pipename --- rc/bin/tap | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/rc/bin/tap b/rc/bin/tap index d17d175d4..277902bf7 100755 --- a/rc/bin/tap +++ b/rc/bin/tap @@ -14,11 +14,12 @@ fn otherqid { fn traceqid { while(! ~ $#* 0){ - echo '['$2']' $1 + echo '['$2']' $3 $1 tracepid `{grep -n `{otherqid $1} /proc/*/fd | sed 's!^/proc/([^/]+)/.*!\1!g'} \ | sed 's/^/ /g' shift shift + shift } } @@ -30,7 +31,7 @@ fn tracepid { echo ' ...' case * v=($1 $v) - traceqid `{awk '/\#\|\/data1?$/{q=substr($5,2);print q" "$1}' /proc/$1/fd} \ + traceqid `{awk '/\|/{q=substr($5,2);print q" "$1" "$10}' /proc/$1/fd} \ | sed 's/^/ /g' } shift -- cgit v1.2.3