Get file descriptor output in resumed syscall using strace

47 Views Asked by At

I am using command:

sudo strace --trace=sendto,recvfrom,read,write,ipc -yy -s 10000 -fp $pid 2>&1

where pid is the the process id I want to trace.

When i get outputs, there are some unfinished and resumed syscalls.

The unfinished syscall looks like this:

[pid  4427] recvfrom(82<UNIX:[2715572>2716112,"/home/learn/my_socket"]>,  <unfinished...>

And the resumed syscall looks like this:

[pid  4427] <... recvfrom resumed>"\0\20{\"isAlive\":true}", 8192, 0, NULL, NULL) = 18

I want to know the file descriptor information 82<UNIX:[2715572>2716112,"/home/learn/my_socket"] also in the resumed syscall.

How can I possibly do that?

0

There are 0 best solutions below