如何获取已向另一个已退出转储核心的进程发送 SIGABRT 信号的进程的 pid

发布于 2024-07-10 05:45:53 字数 47 浏览 1 评论 0原文

如何获取已向另一个已退出转储核心的进程发送 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

北音执念 2024-07-17 05:45:53

简而言之,通过安装 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 the siginfo_t structure should be populated with extra info about the signal, including the sender's PID etc.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文