diff options
author | aiju <aiju@phicode.de> | 2011-06-26 22:44:11 +0200 |
---|---|---|
committer | aiju <aiju@phicode.de> | 2011-06-26 22:44:11 +0200 |
commit | 883f9aaab94bddbc21be7675e4889489ce489ec6 (patch) | |
tree | 62975de62c7297a83b7b9ad4472832ff951965c7 /rc/bin/kill | |
parent | 6f8b37167d860b01d0a29525d9ba48482ba18bce (diff) | |
download | plan9front-883f9aaab94bddbc21be7675e4889489ce489ec6.tar.xz |
fixed kill
Diffstat (limited to 'rc/bin/kill')
-rwxr-xr-x | rc/bin/kill | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/rc/bin/kill b/rc/bin/kill index def927e92..e8ea70ac6 100755 --- a/rc/bin/kill +++ b/rc/bin/kill @@ -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' } |