Home » Questions » Computers [ Ask a new question ]

Will strace watch system calls recursively on child processes of the main process being observed?

Will strace watch system calls recursively on child processes of the main process being observed?

If I run strace on a program and that program spawns a subprocess (e.g. perl's system() call), will strace report the system calls for the child process as well?

Asked by: Guest | Views: 32
Total answers/comments: 1
Guest [Entry]

Yes, but you need to add the -f flag to trace the child processes.