摘要: #!/bin/bash if (( $# < 1 )) then echo "usage: `basename $0` pid" 1>&2 exit 1 fiif [[ ! -r /proc/$1 ]] then echo "Process $1 not found." 1>&2 exit 1 fibacktrace="bt" if [[ -d /proc/$1/task ]] then if [[ `ls /proc/$1/task 2>/dev/null | wc -l` > 1 ]] 阅读全文
posted @ 2011-06-28 19:52 napoleon_liu 阅读(1039) 评论(1) 推荐(0) 编辑