Kill: don't pollute environment

This commit is contained in:
cinap_lenrek 2020-12-23 01:42:52 +01:00
parent c8c5499d7f
commit e45c7480b6

View file

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