Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CISOfy/lynis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Light <eric@ericlight.com>2016-05-02 14:24:19 +0300
committerMichael Boelen <michael@cisofy.com>2016-05-02 14:24:19 +0300
commitbcaf7a55ef55fddf2d867fb03bbc10eb18993a7a (patch)
tree2d13f6e9d17945291a1c7a762c9e9c318a171812 /include/tests_memory_processes
parent81a4821636b56a353ebe8cd51c5c36963a28b123 (diff)
Remove wchan from PROC-3614, to finish #179 (#182)
Attempt number two, fixing the awk line this time :)
Diffstat (limited to 'include/tests_memory_processes')
-rw-r--r--include/tests_memory_processes4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/tests_memory_processes b/include/tests_memory_processes
index 77d4b7a8..05199738 100644
--- a/include/tests_memory_processes
+++ b/include/tests_memory_processes
@@ -97,9 +97,9 @@
Register --test-no PROC-3614 --preqs-met ${PREQS_MET} --weight L --network NO --description "Check heavy IO waiting based processes"
if [ ${SKIPTEST} -eq 0 ]; then
if [ "${OS}" = "AIX" ]; then
- FIND=`${PSBINARY} -Ae -o pid,wchan,stat,comm | awk '{ if ($3=="D") print $1 }' | xargs`
+ FIND=`${PSBINARY} -Ae -o pid,stat,comm | awk '{ if ($2=="D") print $1 }' | xargs`
else
- FIND=`${PSBINARY} x -o pid,wchan,stat,comm | awk '{ if ($3=="D") print $1 }' | xargs`
+ FIND=`${PSBINARY} x -o pid,stat,comm | awk '{ if ($2=="D") print $1 }' | xargs`
fi
if [ "${FIND}" = "" ]; then
LogText "Result: No processes were waiting for IO requests to be handled first"