加薪(SIGABRT),并中止之差()方法 [英] Difference between raise(SIGABRT) and abort() methods

查看:140
本文介绍了加薪(SIGABRT),并中止之差()方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道这两个加薪(SIGABRT)中止()方法会SIGABRT信号发送到自身。但也有一些2功能之间存在差异。 (如 - 中止()函数放开SIGABRT信号,其中的加薪(SIGABRT)没有。​​)

I know that both raise(SIGABRT) and abort() methods will send a SIGABRT signal to itself. But there are some difference between those 2 functions. (e.g - abort() function unblocks the SIGABRT signal where as raise(SIGABRT) does not.)

什么是加薪(SIGABRT)和中止与其他的差异()方法

What are the other differences between raise(SIGABRT) and abort() methods

推荐答案

这是 中止() 即使结束,如果 SIGABRT 被忽略的过程。

逐字从 中止的人

如果在 SIGABRT 信号被忽略,或返回,在中止()功能仍然会终止进程的处理程序捕获。它通过恢复默认配置对于 SIGABRT ,然后提高信号为做到这一点
         第二次。

If the SIGABRT signal is ignored, or caught by a handler that returns, the abort() function will still terminate the process. It does this by restoring the default disposition for SIGABRT and then raising the signal for a second time.

这篇关于加薪(SIGABRT),并中止之差()方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆