![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Linux C语言高级编程
文章平均质量分 69
coolboyli520
这个作者很懒,什么都没留下…
展开
-
C++语言实现的signal函数的用法
#include using namespace std;#include void func(int sig){ switch(sig) { case SIGINT: cout << "我是ctrl+c,我被捕捉了" <<endl; break;原创 2011-07-21 15:36:47 · 1051 阅读 · 0 评论 -
C语言实现的一个程序只能运行一次,不能重复运行
#include #include #include void func(int sin){ //printf("我是ctrl+c,被接受了\n"); system("rm -r ./flag.c"); exit(1);}int main(int argc原创 2011-07-21 15:59:29 · 10961 阅读 · 0 评论 -
C++实现的两个进程,父进程处理SIGUSR2,子进程处理SIGUSR1
#include using namespace std;#include #include #include #include void func(int sig){ switch(sig) { case SIGUSR1: cout <<原创 2011-07-21 15:46:51 · 827 阅读 · 0 评论 -
Linux下的C语言多线程编程
p { margin-bottom: 0.21cm; }h1 { margin-bottom: 0.21cm; }h1.western { font-family: "DejaVu Serif",serif; }h1.cjk { font-family: "DejaVu Sans原创 2011-07-21 14:23:19 · 622 阅读 · 0 评论