shithub: riscv

ref: 0beecd8577e44f17c6c5e64bca2553cee0ddac9a
dir: /rc/bin/Kill/

View raw version
#!/bin/rc
rfork e
for(i){
	ps | sed -n '/ '^$i^'$/s%^[^ ]* *([^ ]*).*%chmod 666 /proc/\1/ctl;@{echo kill>/proc/\1/ctl}%p'
}