Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 linux 上,我可以检查 TracerPid 是否为 != 0:
# cat /proc/self/status Name: cat State: R (running) Tgid: 12569 Pid: 12569 PPid: 24212 TracerPid: 0 ....
如何在 Solaris 上进行操作?
这是一种方法。
pid如果以下命令显示非空字符串,则跟踪进程 id 所在的进程:
pid
pflags pid | grep flttrace
在较早的 Solaris 发行版上,pflags位于/usr/proc/bin.
pflags
/usr/proc/bin