How to attach strace to a forked process
Run this to see the forked process
strace -f ruby -e 'fork' 2>&1 | egrep -A1 '^(fork|clone)'
strace -f ruby -e 'syscall 57' 2>&1 | egrep -A1 '^(fork|clone)'
strace -f ruby -e 'syscall 57' 2>&1 | egrep -A1 '^(fork|clone)'
Run this to log debug of forked process in to log.txt
strace -f ruby -e 'fork' >log.txt 2>&1
strace -f ruby -e 'syscall 57' >log.txt 2>&1
Uroš
strace -f ruby -e 'syscall 57' >log.txt 2>&1
Uroš
No comments:
Post a Comment