linux中send函数MSG_NOSIGNAL异常消息
2013-10-17 13:31
253 查看
linux下当连接断开,还发数据的时候,不仅send()的返回值会有反映,而且还会向系统发送一个异常消息,如果不作处理,系统会出BrokePipe,程序会退出,这对于服务器提供稳定的服务将造成巨大的灾难。为此,send()函数的最后一个参数可以设MSG_NOSIGNAL,禁止send()函数向系统发送异常消息
相关文章推荐
- linux中send函数MSG_NOSIGNAL异常消息
- linux中send函数MSG_NOSIGNAL异常消息
- linux中send函数MSG_NOSIGNAL异常消息
- linux中send函数MSG_NOSIGNAL异常消息
- linux中send函数MSG_NOSIGNAL
- 关于File.separator 文件路径:window与linux下路径问题(“No such file or diretory ”异常解决方案)
- Linux 创建消息队列时出现 No space left on device的处理方法
- linux--异常--NoRouteToHostException: Cannot assign requested address有关问题
- linux问题 执行sh脚本异常:/bin/sh^M:bad interpreter: No such file or directory
- linux可执行文件错误:异常/bin/sh^M: bad interpreter: No such file or dire
- LINUX下执行脚本:/bin/sh^M: bad interpreter: No such file or directory 异常
- Java执行Shell脚本“No such file or directory” (win->Linux)异常的可能原因
- linux 启动apache libltdl.so.3: cannot open shared object file: No such file or directory异常
- Linux fstab 格式异常导致 mount 时报错:no final newline at the end of /etc/fstab
- LINUX安装tomcat 启动报异常 Protocol handler pause failed java.net.NoRouteToHostException: No route to host
- Linux网卡异常问题:ethernet eth0: no PHY
- Linux 的dhcp启动异常之No subnet declaration for eth1 (192.168.48.134)
- linux执行脚本异常/bin/sh^M: bad interpreter: No such file or dire
- linux异常:No space left on device
- Linux sh脚本异常:bad interpreter: No such file or directory