linux 信号注册,linux下信号注册,该怎么解决

C/C++ codeThis header shall also declare the macros SIGRTMIN and SIGRTMAX, which evaluate to integer expressions, and specify a range of signal numbers that are

reserved for application use and for which the realtime signal behavior specified in this volume of IEEE Std 1003.1-2001 is supported. The signal num-

bers in this range do not overlap any of the signals specified in the following table.

The range SIGRTMIN through SIGRTMAX inclusive shall include at least {RTSIG_MAX} signal numbers.

It is implementation-defined whether realtime signal behavior is supported for other signals.

This header also declares the constants that are used to refer to the signals that occur in the system. Signals defined here begin with the letters SIG.

Each of the signals have distinct positive integer values. The value 0 is reserved for use as the null signal (see kill()). Additional implementation-

defined signals may occur in the system.

The ISO C standard only requires the signal names SIGABRT, SIGFPE, SIGILL, SIGINT, SIGSEGV, and SIGTERM to be defined.

The following signals shall be supported on all implementations (default actions are explained below the table):

Signal Default Action Description

SIGABRT A Process abort signal.

SIGALRM T Alarm clock.

SIGBUS A Access to an undefined portion of a mem-

ory object.

SIGCHLD I Child process terminated, stopped,

or continued.

SIGCONT C Continue executing, if stopped.

SIGFPE A Erroneous arithmetic operation.

SIGHUP T Hangup.

SIGILL A Illegal instruction.

SIGINT T Terminal interrupt signal.

SIGKILL T Kill (cannot be caught or ignored).

SIGPIPE T Write on a pipe with no one to read it.

SIGQUIT A Terminal quit signal.

SIGSEGV A Invalid memory reference.

SIGSTOP S Stop executing (cannot be caught or

ignored).

SIGTERM T Termination signal.

SIGTSTP S Terminal stop signal.

SIGTTIN S Background process attempting read.

SIGTTOU S Background process attempting write.

SIGUSR1 T User-defined signal 1.

SIGUSR2 T User-defined signal 2.

SIGPOLL T Pollable event.

SIGPROF T Profiling timer expired.

SIGSYS A Bad system call.

SIGTRAP A Trace/breakpoint trap.

SIGURG I High bandwidth data is available at a

socket.

SIGVTALRM T Virtual timer expired.

SIGXCPU A CPU time limit exceeded.

SIGXFSZ A File size limit exceeded.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值