浏览代码

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}"


正在加载...
取消
保存