Which “fatal” signals should a user-level program catch?

前端 未结 3 736
情歌与酒
情歌与酒 2021-02-08 21:12

First of all, I do know that there was a similar question here in the past.

But that question wasn\'t answered properly. Instead, it diverted into suggestion what to do

3条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-08 21:40

    It depends: whatever signal you like if that's useful to inform the user something bad just happened. However SIGKILL and SIGSTOP cannot be caught.

提交回复
热议问题