Feature #4067
Updated by Zhiyi Zhang about 7 years ago
Given the fd and also the PID of nfd: here fd = 10 and pid = 5402. In MACOS **First Step**: First Step: sudo lsof -U -p 5402 -a | grep unix nfd 5402 root 10u unix 0xcb0fd89f2f36d5d5 0t0 /private/var/run/nfd.sock nfd 5402 root 24u unix 0xcb0fd89f14a584a5 0t0 /private/var/run/nfd.sock nfd 5402 root 29u unix 0xcb0fd89f14a583dd 0t0 ->0xcb0fd89f14a5aa25 nfd 5402 root 30u unix 0xcb0fd89f14a5aa25 0t0 /private/var/run/nfd.sock Now we get: nfd 5402 root 10u unix 0xcb0fd89f2f36d5d5 0t0 /private/var/run/nfd.sock **Second Step**: Second Step: sudo lsof | grep 0xcb0fd89f2f36d5d5 nfd 5402 root 10u unix 0xcb0fd89f2f36d5d5 0t0 /private/var/run/nfd.sock ndncert-c 28670 ZhangZhiyi 9u unix 0xcb0fd89f2f36eed5 0t0 ->0xcb0fd89f2f36d5d5 Now we have the pid of the other end of unix domain socket 28670 **Third Step**: Third Step: ps -p 28670 PID TTY TIME CMD 28670 ttys003 0:00.03 ./build/bin/ndncert-ca-server **Another Another Third Step**: Step: vmmap 28670 | grep Path Path: /Users/ZhangZhiyi/Develop/ndncert/ndncert/build/bin/ndncert-ca-server **Fourth Step**: Fourth Step: codesign -vvvv /Users/ZhangZhiyi/Develop/ndncert/ndncert/build/bin/ndncert-ca-server DONE!