加入收藏 | 设为首页 | 会员中心 | 我要投稿 网站开发网_马鞍山站长网 (https://www.0555zz.com/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 站长百科 > 正文

Signal Handling--ref

发布时间:2021-01-26 04:16:31 所属栏目:站长百科 来源:网络整理
导读:副标题#e# A program error such as dividing by zero or issuing an address outside the valid range. A user request to interrupt or terminate the program. Most environments are set up to let a user suspend the program by typing C-z ,or termi

The default action for this signal is to ignore it. If you establish a handler for this signal while there are child processes that have terminated but not reported their status viawaitorwaitpid(see section),whether your new handler applies to those processes or not depends on the particular operating system.

intSIGCLD
This is an obsolete name forSIGCHLD.
intSIGCONT
You can send aSIGCONTsignal to a process to make it continue. This signal is special--it always makes the process continue if it is stopped,before the signal is delivered. The default behavior is to do nothing else. You cannot block this signal. You can set a handler,butSIGCONTalways makes the process continue regardless.

Most programs have no reason to handleSIGCONT; they simply resume execution without realizing they were ever stopped. You can use a handler forSIGCONTto make a program do something special when it is stopped and continued--for example,to reprint a prompt when it is suspended while waiting for input.

intSIGSTOP
TheSIGSTOPsignal stops the process. It cannot be handled,ignored,or blocked.

(编辑:网站开发网_马鞍山站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!