diff options
author | stanley lieber <stanley.lieber@gmail.com> | 2014-04-14 19:24:27 -0400 |
---|---|---|
committer | stanley lieber <stanley.lieber@gmail.com> | 2014-04-14 19:24:27 -0400 |
commit | d8e4904d0aac4d67a1953eb8c5ad46c070bf1a94 (patch) | |
tree | fac08d3e7a580c710b699e412919a9e4ae4b9097 | |
parent | 1c3e6a3e5aad9365e5e0aa2fb2e29b789e852f10 (diff) | |
download | plan9front-d8e4904d0aac4d67a1953eb8c5ad46c070bf1a94.tar.xz |
aanuke: check both /net and /net.alt (thanks, mischief)
-rwxr-xr-x | rc/bin/aanuke | 2 |
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)' } |