main.c
来源:互联网 发布:java应用服务器有那些 编辑:程序博客网 时间:2024/05/16 12:46
int main(int argc, char * argv[])
{
// on write, don't send signal for SIGPIPE, just set errno to EPIPE
// and return -1
//signal is a deprecated and potentially dangerous function
//(void) ::signal(SIGPIPE, SIG_IGN);
struct sigaction act;
#if defined(i386) || defined(__x86_64__)
sigemptyset(&act.sa_mask);
act.sa_flags = 0;
act.sa_handler = (void(*)(int))&sigcatcher;
#endif
(void)::sigaction(SIGPIPE, &act, NULL);
(void)::sigaction(SIGHUP, &act, NULL);
(void)::sigaction(SIGINT, &act, NULL);
(void)::sigaction(SIGTERM, &act, NULL);
(void)::sigaction(SIGQUIT, &act, NULL);
(void)::sigaction(SIGALRM, &act, NULL);
}
{
// on write, don't send signal for SIGPIPE, just set errno to EPIPE
// and return -1
//signal is a deprecated and potentially dangerous function
//(void) ::signal(SIGPIPE, SIG_IGN);
struct sigaction act;
#if defined(i386) || defined(__x86_64__)
sigemptyset(&act.sa_mask);
act.sa_flags = 0;
act.sa_handler = (void(*)(int))&sigcatcher;
#endif
(void)::sigaction(SIGPIPE, &act, NULL);
(void)::sigaction(SIGHUP, &act, NULL);
(void)::sigaction(SIGINT, &act, NULL);
(void)::sigaction(SIGTERM, &act, NULL);
(void)::sigaction(SIGQUIT, &act, NULL);
(void)::sigaction(SIGALRM, &act, NULL);
}
0 0
- main.c
- main.c
- main.c
- main.c
- main.c
- main.c
- main.c
- main.c
- main.c
- Main.c
- main.c
- 0.11-main.c
- [C学习]Main函数
- linux-main.c
- C++main的参数表
- xv6的main.c
- scull-main.c
- s3c24xx main.c
- Greatest Greatest Common Divisor hdu 5207
- 项目中QA职责
- 面向对象(三)
- Oracle修改监听IP地址---- hostname必须填127.0.0.1的问题----除本机外其它电脑连接不了本机oracle数据服务器
- this 在Java中的应用
- main.c
- Android 线程之HandlerThread
- 遍历二叉树
- 切面条
- JS弹窗加入购物车特效
- ip 导向
- sql JOIN
- php单例模式
- poj 2125 Destroying The Graph 最小点权覆盖