dotfiles

personal dotfiles
git clone anongit@rnpnr.xyz:dotfiles.git
Log | Files | Refs | Feed | Submodules

Commit: 8be1b527bc05de2314536887bfac16fd1f38fffa
Parent: c70b31fc011653ad3679c6b99ae5d8d302b329b5
Author: Randy Palamar
Date:   Mon,  9 Dec 2024 07:13:20 -0700

add debugbreak script

Diffstat:
Abin/debugbreak | 10++++++++++
1 file changed, 10 insertions(+), 0 deletions(-)

diff --git a/bin/debugbreak b/bin/debugbreak @@ -0,0 +1,10 @@ +#!/usr/alt/bin/rc + +# debugbreak: immediately break all processes attached to a debugger + +flag e + + +for (pid in `{ls /proc | grep '^[0-9]\+$'}) { + if (grep -q '^TracerPid:\s[^0]' /proc/$pid/status >[2]/dev/null) + kill -TRAP $pid +}