Abort|学习笔记

简介: 快速学习 Abort

开发者学堂课程【物联网开发- Linux 高级程序设计全套视频Alarm 函数 】学习笔记,与课程紧密联系,让用户快速学习知识。

课程地址:https://developer.aliyun.com/learning/course/660/detail/11011


Abort

 

内容介绍:

一.raise 与 abort 的不同

二.abort 的操作          

   

一. raise 与 abort 的不同

刚才是说raise ,当前建成立马发送信号,abort 函数它没有参数没有返回值,在程序当中调abort 函数 它会在程序当中发送一个 sigabrt 信号,默认情况下进程会退出。

 

二.abort 的操作

注意:

即使 sigabrt 信号被加入阻塞集 ,一般的信号在集合里面信号就会被屏蔽,一旦进程调用了 abort 函数,进程也还是会被终止,就是 sigabrt 不会被终止,不会被阻塞,且在终止前会刷新缓冲区,关文件描述符。

相当于 raise 函数可以直接指定发哪一个信号,abort 函数就只能发 abort 信号, raise 代码化成 abort ,两秒钟写成abort 信号,建成就结束。

相关文章
|
5天前
【Bug】ERROR ResizeObserver loop completed with undelivered notifications.
【Bug】ERROR ResizeObserver loop completed with undelivered notifications.
|
7月前
|
数据库 数据库管理
【异常解决】svn报“Previous operation has not finished; run ‘cleanup‘ if it was interrupted”的错误解决方案
【异常解决】svn报“Previous operation has not finished; run ‘cleanup‘ if it was interrupted”的错误解决方案
180 0
|
10月前
|
SQL 关系型数据库 MySQL
Mysql 异常:Lock wait timeout exceeded; try restarting transaction的解决办法
Mysql 异常:Lock wait timeout exceeded; try restarting transaction的解决办法
109 0
|
11月前
|
Java Spring
Redisson BUG: Failed to submit a listener notification task. Event loop shut down?
Redisson BUG: Failed to submit a listener notification task. Event loop shut down?
902 0
abort: error: Temporary failure in name resolution
abort: error: Temporary failure in name resolution
153 0
执行HQL直接被退出:Remote side unexpectedly closed network connection
执行HQL直接被退出:Remote side unexpectedly closed network connection
1076 0
执行HQL直接被退出:Remote side unexpectedly closed network connection
|
Oracle 关系型数据库
impdp导入卡住,等待事件wait for unread message on broadcast channel
impdp导入卡住,等待事件wait for unread message on broadcast channel
1990 0
svn报错:“Previous operation has not finished; run ‘cleanup‘ if it was interrupted“ 的解决办法
svn报错:“Previous operation has not finished; run ‘cleanup‘ if it was interrupted“ 的解决办法
224 0
svn报错:“Previous operation has not finished; run ‘cleanup‘ if it was interrupted“ 的解决办法