summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstanley lieber <stanley.lieber@gmail.com>2014-04-14 19:24:27 -0400
committerstanley lieber <stanley.lieber@gmail.com>2014-04-14 19:24:27 -0400
commitd8e4904d0aac4d67a1953eb8c5ad46c070bf1a94 (patch)
treefac08d3e7a580c710b699e412919a9e4ae4b9097
parent1c3e6a3e5aad9365e5e0aa2fb2e29b789e852f10 (diff)
downloadplan9front-d8e4904d0aac4d67a1953eb8c5ad46c070bf1a94.tar.xz
aanuke: check both /net and /net.alt (thanks, mischief)
-rwxr-xr-xrc/bin/aanuke2
1 files changed, 1 insertions, 1 deletions
diff --git a/rc/bin/aanuke b/rc/bin/aanuke
index efafa29c4..8b72554fa 100755
--- 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)'
}