kill is unsafe respect to signals - any alternative?

試著忘記壹切 提交于 2019-12-11 15:18:33

问题


I read that kill is unsafe respect to signals here.

What else should I use if I want to kill child process as part of clean up inside my signal handler? What are my alternatives?


回答1:


You've misread, that page says that kill() (and everything else in the table) shall be async-signal-safe. anything not in the table is to be considered unsafe.



来源:https://stackoverflow.com/questions/6971201/kill-is-unsafe-respect-to-signals-any-alternative

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!