Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why doesn't strace catch all file accesses?

Tags:

linux

unix

I'm trying to use strace to monitor all file accesses by g++ but it only seems to catch read accesses. Why isn't the file access for the output file shown?

like image 691
dromodel Avatar asked Mar 22 '26 04:03

dromodel


1 Answers

g++ calls other programs to do part of the build. If you want strace to trace those child processes, you need to use 'strace -f'.

like image 135
JayM Avatar answered Mar 24 '26 20:03

JayM



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!