摘要: “发生信号时将唤醒由于调用sleep函数而进入阻塞状态的进程。” #include <stdio.h> #include <unistd.h> #include <signal.h> void timeout(int sig) { if(sig == SIGALRM) puts("time out" 阅读全文
posted @ 2020-05-18 16:56 Kasper 阅读(669) 评论(0) 推荐(0) 编辑