ref: 466cf20d3524b8e42edc333a6d2df2a01e99a95b 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' }