信号处理趣谈

信号的替换:信号替换有以下两种方式 1.typedef void(*sighandler_t)(int); sighandler_t signal(int signum,sighandler_t handler); 2.int sigaction(int signum,const struct sigaction *act, struct *oldact); 此两种都为信号的替换,但他们有何不同?
相关文章
相关标签/搜索