From 258f16aa315750de02c55198ffa524ae8083f0bc Mon Sep 17 00:00:00 2001 From: JeremyRand Date: Sun, 3 Nov 2019 17:30:17 +0000 Subject: [PATCH] Remove -xx flag from strace Fixes https://github.com/JeremyRand/heteronculous/issues/1 --- detect_leaks.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/detect_leaks.sh b/detect_leaks.sh index d78ba6c..13c9fe4 100755 --- a/detect_leaks.sh +++ b/detect_leaks.sh @@ -84,7 +84,7 @@ echo "strace whitelist: ${whitelist}" echo "" -strace -f -xx -o >(stdbuf -i 0 -o 0 -e 0 grep -G --invert-match "${whitelist}" - | stdbuf -i 0 -o 0 -e 0 grep -E "(socket|getsockopt|setsockopt|getsockname|connect|bind|send|sendto|sendmsg|recv|recvfrom|recvmsg|accept|shutdown|listen|getpeername|socketpair|accept4|recvmmsg|sendmmsg)" - | tee strace_output.txt) -e trace=socket,getsockopt,setsockopt,getsockname,connect,bind,send,sendto,sendmsg,recv,recvfrom,recvmsg,accept,shutdown,listen,getpeername,socketpair,accept4,recvmmsg,sendmmsg $* +strace -f -o >(stdbuf -i 0 -o 0 -e 0 grep -G --invert-match "${whitelist}" - | stdbuf -i 0 -o 0 -e 0 grep -E "(socket|getsockopt|setsockopt|getsockname|connect|bind|send|sendto|sendmsg|recv|recvfrom|recvmsg|accept|shutdown|listen|getpeername|socketpair|accept4|recvmmsg|sendmmsg)" - | tee strace_output.txt) -e trace=socket,getsockopt,setsockopt,getsockname,connect,bind,send,sendto,sendmsg,recv,recvfrom,recvmsg,accept,shutdown,listen,getpeername,socketpair,accept4,recvmmsg,sendmmsg $* if [ -s strace_output.txt ] then