fixed kill

This commit is contained in:
aiju 2011-06-26 22:44:11 +02:00
parent 6f8b37167d
commit 883f9aaab9

View file

@ -1,4 +1,8 @@
#!/bin/rc
rfork e
U=`{cat /dev/user}
for(i){
ps | sed -n '/ '^$i^'$/s%^[^ ]* *([^ ]*).*%chmod 666 /proc/\1/ctl;echo kill > /proc/\1/ctl%p'
ps | sed -n '/^'$U' .* '$i'$/s%[^ ]* *%~>/proc/%
s% *.* (.*)%/note # \1%
s%~%echo kill%p'
}