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