]> git.lizzy.rs Git - plan9front.git/commitdiff
aanuke: check both /net and /net.alt (thanks, mischief)
authorstanley lieber <stanley.lieber@gmail.com>
Mon, 14 Apr 2014 23:24:27 +0000 (19:24 -0400)
committerstanley lieber <stanley.lieber@gmail.com>
Mon, 14 Apr 2014 23:24:27 +0000 (19:24 -0400)
rc/bin/aanuke

index efafa29c48969bdbe29b6c181a2e3c8b51647051..8b72554fa9c59cea7111924869cf50c32642e6d1 100755 (executable)
@@ -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)'
 }