소스 검색

Check whether lsof and gdb are available

master
JustAnotherArchivist 6 년 전
부모
커밋
f7dc46991c
1개의 변경된 파일12개의 추가작업 그리고 0개의 파일을 삭제
  1. +12
    -0
      kill-wpull-connections

+ 12
- 0
kill-wpull-connections 파일 보기

@@ -30,6 +30,18 @@ then
wpullPid=${pids[0]}
fi

if ! command -v lsof >/dev/null 2>&1
then
echo "Error: could not find lsof"
exit 1
fi

if ! command -v gdb >/dev/null 2>&1
then
echo "Error: could not find gdb"
exit 1
fi

if ! kill -0 ${wpullPid} >/dev/null 2>&1
then
echo "Error: no process with PID ${wpullPid}"


불러오는 중...
취소
저장