如何获取已向另一个已退出转储核心的进程发送 SIGABRT 信号的进程的 pid
如何获取已向另一个已退出转储核心的进程发送 SIGABRT 信号的进程的 pid
how to get the pid of a process which has sent a SIGABRT signal to another process which has exited dumping core
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
简而言之,通过安装 SIGABRT 信号处理程序。 更具体地说,如果您在安装信号处理程序时指定 SA_SIGINFO 标志,则 siginfo_t 结构应填充有关信号的额外信息,包括发送者的 PID 等。
In short, by installing a signal handler for SIGABRT. More specifically, if you specify the
SA_SIGINFO
flag when installing the signal handler, then thesiginfo_t
structure should be populated with extra info about the signal, including the sender's PID etc.