3 ms·
Tangentially, there's a funny Easter Egg in strace – with some trial and error, you can get it to strace its own pid. $ strace -p 957 strace: I'm sorry, I ca
by mandarg 10y ago
Tangentially, there's a funny Easter Egg in strace – with some trial and error, you can get it to strace its own pid.
$ strace -p 957 strace: I'm sorry, I can't let you do that, Dave.
- digitalsushi 10y agolet z=$(readlink /proc/self)+1 && strace -p $z probably a race. i'm not a real programmer.
- qb45 10y agosh -c 'exec strace -p $$' This is race-free and POSIX-compliant I think.