From c57fe0690fd947c8f285d6a87319c07408ada42f Mon Sep 17 00:00:00 2001 From: stanley lieber Date: Mon, 14 Apr 2014 21:01:55 -0400 Subject: [PATCH] aanuke: only print commands to kill the current user's aan procs --- rc/bin/aanuke | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rc/bin/aanuke b/rc/bin/aanuke index 8b72554fa..336619773 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}'}){ +for(i in `{psu | awk '/[ ]+aan$/ {print $2}'}){ if(! grep -s -e '[ ]+\/net(\.alt)?\/tcp\/[0-9]+\/data$' /proc/$i/fd) echo '@{echo kill>/proc/'$i'/note} # aan (idle)' }