ref: d8e4904d0aac4d67a1953eb8c5ad46c070bf1a94
parent: 1c3e6a3e5aad9365e5e0aa2fb2e29b789e852f10
author: stanley lieber <stanley.lieber@gmail.com>
date: Mon Apr 14 15:24:27 EDT 2014
aanuke: check both /net and /net.alt (thanks, mischief)
--- a/rc/bin/aanuke
+++ b/rc/bin/aanuke
@@ -1,6 +1,6 @@
#!/bin/rc
rfork e
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)'
}