如果在处理SIGFPE、SIGILL、SIGSEGV或任何实现定义的指定计算性异常的其他信号时用户定义函数返回,那么行为未定义。 如果信号处理函数作为std::abort或std::raise(异步调用)的结果调用,那么在信号处理函数调用std::raise时行为未定义。 在信号处理函数入口,浮点环境的状态和所有对象的值都是未指定的,除了 ...
SIGABRTSIGFPESIGILLSIGINTSIGSEGVSIGTERM 定义信号类型 (宏常量) handler - SIG_DFL宏。信号处理函数被设为默认信号处理函数。 SIG_IGN宏。忽略信号。 指向函数指针。函数签名必须等价于如下: extern"C"voidfun(intsig); 返回值 成功时为先前的信号处理函数,失败时为SIG_ERR(某些实现上能禁用设置信号处理函数)。
std::getenv std::signal std::sig_atomic_t SIG_DFL, SIG_IGN std::abort std::atexit std::exit std::at_quick_exit std::quick_exit setjmp std::system std::raise SIG_ERR SIGTERM, SIGSEGV, SIGINT, SIGILL, SIGABRT, SIGFPE std::jmp_buf std::apply 库特性测试宏 (C++20) std::initializer...
If the user defined function returns when handlingSIGFPE,SIGILL,SIGSEGVor any other implementation-defined signal specifying a computational exception, the behavior is undefined. If the signal handler is called as a result ofstd::abortorstd::raise(synchronous signal), the behavior is undefined if th...