From a182509960b87569402df5fec10700b163787d5c Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Thu, 11 Oct 2018 18:21:42 +0200 Subject: luks_test.sh: redirect stderr to log file main.c: removed obsolete waitpid and WIFEXITED check Signed-off-by: Toni Uhlig --- luks_test.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'luks_test.sh') diff --git a/luks_test.sh b/luks_test.sh index 971ab3b..98be5ea 100755 --- a/luks_test.sh +++ b/luks_test.sh @@ -26,10 +26,10 @@ if [ ! -w ${FILE} ] || [ `file ${FILE} | grep -qoE 'LUKS encrypted file' && echo fi if [ "x${DEBUG}" != "x" ]; then - sudo valgrind --log-file=valgrind.log src/naskpass -f ./${NAME}.fifo -c "/sbin/cryptsetup open ${FILE} ${NAME}" || true - sudo valgrind --tool=helgrind --log-file=helgrind.log src/naskpass -f ./${NAME}.fifo -c "/sbin/cryptsetup open ${FILE} ${NAME}" || true + sudo valgrind --log-file=valgrind.log src/naskpass -f ./${NAME}.fifo -c "/sbin/cryptsetup open ${FILE} ${NAME}" 2>./${NAME}_err.log || true + sudo valgrind --tool=helgrind --log-file=helgrind.log src/naskpass -f ./${NAME}.fifo -c "/sbin/cryptsetup open ${FILE} ${NAME}" 2>./${NAME}_err_hell.log || true else - sudo src/naskpass -f ./${NAME}.fifo -c "/sbin/cryptsetup open ${FILE} ${NAME}" + sudo src/naskpass -f ./${NAME}.fifo -c "/sbin/cryptsetup open ${FILE} ${NAME}" 2>./${NAME}_err.log fi set +e -- cgit v1.2.3