summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@flatbox.9hal>2012-03-09 23:56:05 +0100
committercinap_lenrek <cinap_lenrek@flatbox.9hal>2012-03-09 23:56:05 +0100
commit7b368832344d8e7c68065f10323aa239eb0f3a8d (patch)
treecbe88b35e5c090d7a0f03469f4d4c2ea65e2d743
parentba9d8ec473242106d5041b8878fe76db624bd4a1 (diff)
downloadplan9front-7b368832344d8e7c68065f10323aa239eb0f3a8d.tar.xz
tap: show pipename
-rwxr-xr-xrc/bin/tap5
1 files 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