dotfiles

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

debugbreak (231B)


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