signal接口介绍
需要包含头文件#include <posix/signal.h>;
定义了系统信号相关的接口
Header File
Unions
-
union sigval
- #include <signal.h>
Signal value.
Structures
-
struct sigevent
Signal event structure.
Macros
-
SIGEV_NONE
No asynchronous notification is delivered when the event of interest occurs.
-
SIGEV_SIGNAL
A queued signal, with an application-defined value, is generated when the event of interest occurs. Not supported.
-
SIGEV_THREAD
A notification function is called to perform notification.