git: 9front

ref: bd7be1d654d5da073946ff53edfd71b8f9e86d5c
dir: /rc/bin/kill/

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