Kill: don't pollute environment

front
cinap_lenrek 2020-12-23 01:42:52 +01:00
parent c8c5499d7f
commit e45c7480b6
1 changed files with 1 additions and 0 deletions

View File

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