aanuke: check both /net and /net.alt (thanks, mischief)
This commit is contained in:
parent
1c3e6a3e5a
commit
d8e4904d0a
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 `{ps | grep -e '[ ]+aan$' | awk '{print $2}'}){
|
||||||
if(! grep -s -e '[ ]+\/net\/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