git: 9front

Download patch

ref: c0a15affc10e3d35c3b816ecadfb19454b2eae9d
parent: 9575872a8d94ac78f5bfed077c055bdd6f2cd983
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)'
 }
--