aanuke: only print commands to kill the current user's aan procs
This commit is contained in:
parent
d8e4904d0a
commit
c57fe0690f
1 changed files with 1 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/rc
|
#!/bin/rc
|
||||||
rfork e
|
rfork e
|
||||||
for(i in `{ps | grep -e '[ ]+aan$' | awk '{print $2}'}){
|
for(i in `{psu | awk '/[ ]+aan$/ {print $2}'}){
|
||||||
if(! grep -s -e '[ ]+\/net(\.alt)?\/tcp\/[0-9]+\/data$' /proc/$i/fd)
|
if(! grep -s -e '[ ]+\/net(\.alt)?\/tcp\/[0-9]+\/data$' /proc/$i/fd)
|
||||||
echo '@{echo kill>/proc/'$i'/note} # aan (idle)'
|
echo '@{echo kill>/proc/'$i'/note} # aan (idle)'
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue