diff --git a/kill-wpull-connections b/kill-wpull-connections index 73b8e6d..1496b81 100755 --- a/kill-wpull-connections +++ b/kill-wpull-connections @@ -48,6 +48,11 @@ then exit 1 fi +if [[ -e /proc/sys/kernel/yama/ptrace_scope && "$(< /proc/sys/kernel/yama/ptrace_scope)" != "0" && $EUID -ne 0 ]] +then + echo "Warning: /proc/sys/kernel/yama/ptrace_scope is not zero. You likely need to run this script as root." +fi + gdb -batch -batch-silent \ -ex "attach ${wpullPid}" \ -ex 'python import subprocess' \