deadlock-detect/detect-plugin/detect-tools/detect.sh

10 lines
198 B
Bash
Raw Permalink Normal View History

2023-04-11 14:25:27 +08:00
#!/bin/bash
set -e
USER_DIR=$(cd $(dirname $0); cd ..; pwd)
cat $(dirname $0)/.user.pwd | sudo -S ls /proc/$1 > /dev/null
cat $(dirname $0)/.user.pwd | sudo -S $(dirname $0)/detect_deadlock $1